Bugzilla – Bug 2535
Potential leak of memory in bench-simulator.cc
Last modified: 2016-11-11 06:09:34 UTC
Created attachment 2649 [details] Patch I have checked the source file, there is a potential memory leak. Nothing very dramatic, but still an improvement. Patch attached with also style fix. Detected through clang static analyzer.
I suggest to separate whitespace changes and the bug fix into two patches. The bug fix is a single statement. The whitespace change is OK as a second step but please check the first change proposed.
Created attachment 2655 [details] Memleak patch Thank you Tom, I separated them. This is for the memleak.
Created attachment 2656 [details] Style patch Here the style patch.
fixed in 12402:69bffcd3c8fb