Re: [PATCH] Delete temporary string within demangler even in failure cases.

Ian Lance Taylor
2014-05-27T13:47:37Z

On Tue, May 27, 2014 at 3:57 AM, Andrew Burgess <aburgess@broadcom.com> wrote:
>
> libiberty/ChangeLog
>
> * cplus-dem.c (do_type): Call string_delete even if the call to
> demangle_template fails.

This is OK.

Thanks.

I have to ask: you know this code is not used, right? You're looking
at the old demangler, for symbols generated by versions of g++ before
GCC 3.4 (released 2004). The demangler for current versions of g++ is
in cp-demangle.c.

Ian