Skip to content

Commit ca46243

Browse files
matthias-kleinersawenzel
authored andcommitted
Fixed memory leak
1 parent 268fff4 commit ca46243

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Detectors/TPC/spacecharge/include/TPCSpaceCharge/DataContainer3D.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ bool DataContainer3D<DataT, Nx, Ny, Nz>::initFromFile(TFile& inpf, const char* n
144144
return false;
145145
}
146146
mData = dataCont->mData;
147+
delete dataCont;
147148
return true;
148149
}
149150

0 commit comments

Comments
 (0)