Fix memory leak in cp-demangle.c

Mark Mitchell mark@codesourcery.com
Thu Mar 15 20:27:00 GMT 2001


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



More information about the Gcc-patches mailing list