zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #05848
[Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba
Markos Zaharioudakis has proposed merging lp:~zorba-coders/zorba/markos-scratch into lp:zorba.
Requested reviews:
Markos Zaharioudakis (markos-za)
For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/96038
Fixed memory leak in no-copy rule
--
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/96038
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/compiler/rewriter/tools/dataflow_annotations.cpp'
--- src/compiler/rewriter/tools/dataflow_annotations.cpp 2012-03-05 13:30:46 +0000
+++ src/compiler/rewriter/tools/dataflow_annotations.cpp 2012-03-06 02:08:22 +0000
@@ -949,7 +949,8 @@
sources.push_back(node);
std::vector<expr*>* varSources = new std::vector<expr*>;
- theVarSourcesMap.insert(VarSourcesPair(e, varSources));
+ if (theVarSourcesMap.insert(VarSourcesPair(e, varSources)).second == false)
+ delete varSources;
return;
}
Follow ups