#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++