Re: [PATCH] cplus-demangler, free resource after a failed call to gnu_special.

Andrew Burgess
2014-05-14T09:30:50Z

On 14/05/2014 10:01 AM, Gary Benson wrote:
> Ian Lance Taylor wrote:
>> Andrew Burgess <aburgess@broadcom.com> wrote:
>>> On 09/05/2014 9:53 PM, Ian Lance Taylor wrote:
>>>> Andrew Burgess <aburgess@broadcom.com> wrote:
>>>>> if ((AUTO_DEMANGLING || GNU_DEMANGLING))
>>>>> {
>>>>> success = gnu_special (work, &mangled, &decl);
>>>>> + if (!success)
>>>>> + {
>>>>> + delete_work_stuff (work);
>>>>> + string_delete (&decl);
>>>>> + }
>>>>
>>
>> This patch is OK.
>
> Andrew, would you like me to commit this?

Yes please.

Thanks,
Andrew