This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix memory leak in cp-demangle.c
- To: jimb at zwingli dot cygnus dot com
- Subject: Re: Fix memory leak in cp-demangle.c
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 15 Mar 2001 20:32:27 -0800
- Cc: samuel at codesourcery dot com, gcc-patches at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200103152317.SAA26269@zwingli.cygnus.com>
>>>>> "Jim" == Jim Blandy <jimb@zwingli.cygnus.com> writes:
Jim> Perhaps there's some strange sharing going on that makes this
Jim> the wrong thing to do, but I didn't notice any.
Jim> 2001-03-15 Jim Blandy <jimb@redhat.com>
Jim> * cp-demangle.c (string_list_delete): Don't forget to
Jim> free the actual contents of the string.
You should use dyn_string_delete. Patch approved, with that change.
Thanks!
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com