[PATCH][libstdc++-v3 parallel mode] Fix memory leaks in multiway_merge
Johannes Singler
singler@ira.uka.de
Thu Sep 10 09:51:00 GMT 2009
This patch fixes two memory leaks (and non-called destructors) in
multiway_merge.
Tested x86_64-unknown-linux-gnu: No regressions
Please approve for mainline and gcc-4_4-branch.
2009-09-10 Johannes Singler <singler@ira.uka.de>
* include/parallel/multiway_merge.h
(multiway_merge_exact_splitting): Deallocate borders correctly.
(parallel_multiway_merge): Remove unnecessarily complicated
allocation, random access iterators are default-constructible.
Deallocate ne_seqs correctly.
Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multiway_merge_memory_leaks_simplified.patch
Type: text/x-patch
Size: 2143 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090910/7539393f/attachment.bin>
More information about the Libstdc++
mailing list