Skip to content
Snippets Groups Projects

fix memory leak reported at https://redmine.cbm.gsi.de/issues/2570.

Merged Alexandru Bercuci requested to merge a.bercuci/cbmroot:mcbm22-memLeak into master
Files
5
@@ -253,6 +253,12 @@ protected:
*/
virtual bool unpack(const fles::Timeslice* ts, std::uint16_t icomp, UInt_t imslice) = 0;
/**
* @brief Use this function to implement additional actions to be called to finalize component if necessary.
(e.g. copy from temp buffers)
*/
virtual void FinalizeComponent() { return; };
public:
// Runtime functions
@@ -433,6 +439,9 @@ public:
}
}
/// Give opportunity to finalize component (e.g. copy from temp buffers) if necessary
FinalizeComponent();
auto ndigis = fOutputVec.size();
fNrCreatedDigis += ndigis;
Loading