GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] Memory leak in PndSttHitProducerRealFull / PndFtsHitProducerRealFull?
[FIXED] Memory leak in PndSttHitProducerRealFull / PndFtsHitProducerRealFull? [message #17671] Thu, 18 December 2014 15:27 Go to previous message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *physik.uni-giessen.de
Hello all,

while looking for memory leaks in my own code, I have possibly found memory leaks in the above two classes (actually in some more):

From PndSttHitProducerRealFull.cxx ( https://subversion.gsi.de/trac/fairroot/browser/pandaroot/trunk/stt/PndS ttHitProducerRealFull.cxx) lines 86-87:
  PndSttMapCreator *mapper = new PndSttMapCreator(fSttParameters);
  fTubeArray = mapper->FillTubeArray();

I have not found any
delete mapper;

and I am wondering if this is done intentionally in that way for some reason which I don't know about or whether this is a bug.

Would that also be correct?
  PndSttMapCreator mapper(fSttParameters);
  fTubeArray = mapper.FillTubeArray();


Kind regards,
Martin

[Updated on: Fri, 19 December 2014 21:53] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Question about using pointers to fill TClonesArray
Next Topic: please update the tracking directory
Goto Forum:
  


Current Time: Thu Dec 12 20:48:44 CET 2024

Total time taken to generate the page: 0.00656 seconds