[PATCH][libstdc++-v3 parallel mode] Fix small memory leak in loser tree

Johannes Singler singler@ira.uka.de
Tue Aug 12 09:24:00 GMT 2008


Array was freed using single-object delete.

Tested x86_64-unknown-linux-gnu: No regressions

Please approve for mainline and gcc-4_3-branch.

2008-08-12  Johannes Singler  <singler@ira.uka.de>

          * include/paralle/losertree.h:
          (~LoserTreePointerBase) Replace delete by appropriate delete[].

Johannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pmode_losertree_new_delete_mismatch.diff
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080812/975c4fd0/attachment.bin>


More information about the Gcc-patches mailing list