From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo commit in src/patchsets/gcc/2.95.3/gentoo: 14_all_libstdc++_deque-leak-fix.patch |
Date: | Sat, 29 Dec 2012 06:46:52 |
Message-Id: | 20121229064634.6E5F62171D@flycatcher.gentoo.org |
1 | vapier 12/12/29 06:46:34 |
2 | |
3 | Added: 14_all_libstdc++_deque-leak-fix.patch |
4 | Log: |
5 | add mem leak fix from upstream |
6 | |
7 | Revision Changes Path |
8 | 1.1 src/patchsets/gcc/2.95.3/gentoo/14_all_libstdc++_deque-leak-fix.patch |
9 | |
10 | file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/2.95.3/gentoo/14_all_libstdc++_deque-leak-fix.patch?rev=1.1&view=markup |
11 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/2.95.3/gentoo/14_all_libstdc++_deque-leak-fix.patch?rev=1.1&content-type=text/plain |
12 | |
13 | Index: 14_all_libstdc++_deque-leak-fix.patch |
14 | =================================================================== |
15 | [See also http://gcc.gnu.org/ml/libstdc++/2001-11/msg00133.html ] |
16 | |
17 | Date: Fri, 16 Nov 2001 16:06:22 -0500 |
18 | From: Phil Edwards <pedwards at disaster dot jaj dot com> |
19 | To: gcc-patches at gcc dot gnu dot org |
20 | Subject: [libstdc++ trunk & 3.0] Fix deque memory leak |
21 | Message-ID: <20011116160622.A23094@××××××××××××.com> |
22 | |
23 | |
24 | As discussed on the libstdc++ mailing list. Tested on i686/linux. |
25 | |
26 | |
27 | |
28 | 2001-11-16 Paolo Carlini <pcarlini@××××××.it> |
29 | |
30 | * include/bits/stl_deque.h (deque::erase()): Fix memory leak. |
31 | |
32 | |
33 | [rediffed against 2.95.3 -- dank] |
34 | |
35 | --- gcc-2.95.3/libstdc++/stl/stl_deque.h.old 2001-01-01 09:48:22.000000000 -0800 |
36 | +++ gcc-2.95.3/libstdc++/stl/stl_deque.h 2006-02-18 15:24:17.000000000 -0800 |
37 | @@ -1052,7 +1052,7 @@ |
38 | copy_backward(_M_start, __first, __last); |
39 | iterator __new_start = _M_start + __n; |
40 | destroy(_M_start, __new_start); |
41 | - _M_destroy_nodes(__new_start._M_node, _M_start._M_node); |
42 | + _M_destroy_nodes(_M_start._M_node, __new_start._M_node); /* fixed per http://gcc.gnu.org/ml/libstdc++/2001-11/msg00139.html */ |
43 | _M_start = __new_start; |
44 | } |
45 | else { |