]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/comp/AliHLTTPCCompModelConverter.cxx
cleaning memory on error condition and loop break
[u/mrichter/AliRoot.git] / HLT / TPCLib / comp / AliHLTTPCCompModelConverter.cxx
index 38cfe7afefe1d1200544b367aa2e12c9ff9c3e14..ca61681c04631d0b5f53e50661a449409cd35d08 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 )