diff --git a/Detectors/TPC/spacecharge/include/TPCSpaceCharge/DataContainer3D.h b/Detectors/TPC/spacecharge/include/TPCSpaceCharge/DataContainer3D.h index a641a78598336..2f2cbff101cf3 100644 --- a/Detectors/TPC/spacecharge/include/TPCSpaceCharge/DataContainer3D.h +++ b/Detectors/TPC/spacecharge/include/TPCSpaceCharge/DataContainer3D.h @@ -144,6 +144,7 @@ bool DataContainer3D::initFromFile(TFile& inpf, const char* n return false; } mData = dataCont->mData; + delete dataCont; return true; }