[Ad-dev] [ADIC] #57: memory leaks caused by calls to createXAIFVertex (in Sage2XAIFGraph)
ADIC
trac at mcs.anl.gov
Sat Jul 16 09:25:17 CDT 2011
#57: memory leaks caused by calls to createXAIFVertex (in Sage2XAIFGraph)
-----------------------------+----------------------------------------------
Reporter: utke | Owner: narayanan
Type: defect | Status: new
Priority: major | Milestone:
Component: OA/Sage to XAIF | Version:
Keywords: |
-----------------------------+----------------------------------------------
most calls look like this:
SynthesizedXAIFInfo * dummydsptr = new SynthesizedXAIFInfo();
....
IndexTriplet *triplet = createXAIFVertex<IndexTriplet,
ArrayElementReference> (vv, arrelemref, next_avail_index, dummydsptr);
The dummydsptr points to a new'ed up instance of SynthesizedXAIFInfo but
the implementation of createXAIFVertex overwrites that pointer value with
yet another new'ed up SynthesizedXAIFInfo:
dsptr = new SynthesizedXAIFInfo(next_index);
--
Ticket URL: <http://trac.mcs.anl.gov/projects/ADIC/ticket/57>
ADIC <http://trac.mcs.anl.gov/projects/ADIC>
ADIC: Automatic Differentiation for C and C++
More information about the Ad-dev
mailing list