This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Fix memory leak in cp-demangle.c


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]