cleaning memory on error condition and loop break
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Feb 2011 11:35:17 +0000 (11:35 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Feb 2011 11:35:17 +0000 (11:35 +0000)
HLT/TPCLib/comp/AliHLTTPCCompModelConverter.cxx

index 38cfe7a..ca61681 100644 (file)
@@ -826,6 +826,8 @@ int AliHLTTPCCompModelConverter::GetRemainingClusters( AliHLTUInt8_t* const pTgt
                {
                HLTWarning( "Cannot write remaining clusters to output. Data size too large (exceeding %lu bytes)", (unsigned long)dataSize );
                iResult=-ENOBUFS;
+               if(data)
+                 delete [] data;
                break;
                }
              if ( tempPt )