Release event in case it is end_of_run or not selected by the raw reader.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 26 Jun 2009 14:35:52 +0000 (14:35 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 26 Jun 2009 14:35:52 +0000 (14:35 +0000)
RAW/AliRawReaderDateOnline.cxx

index 6a6c247..49bcee5 100644 (file)
@@ -121,11 +121,13 @@ Bool_t AliRawReaderDateOnline::NextEvent()
     if (eventT==END_OF_RUN) {
       AliInfo("EOR event detected");
       Reset();
+      free(fEvent);
       fEvent = NULL;
       return kFALSE;
     }
     
     if (!IsEventSelected()) {
+      free(fEvent);
       continue;
     }