Re: libiberty/cplus-dem.c, ada-demangle: plug memory leak.

2011-03-04 Thread Tristan Gingold
On Mar 3, 2011, at 10:59 PM, Michael Snyder wrote: Jakub Jelinek wrote: On Thu, Mar 03, 2011 at 01:20:28PM -0800, Michael Snyder wrote: 2011-03-03 Michael Snyder msny...@vmware.com * libiberty/cplus-dem.c (ada_demangle): Stop memory leak. Also fix a one line indent problem. No

Re: libiberty/cplus-dem.c, ada-demangle: plug memory leak.

2011-03-04 Thread Tom Tromey
Michael How come 'xfree' in gdb/utils.c still checks for null? I don't know, but I assume just because nobody has bothered to remove the check. I think we also still have code doing `if (x) xfree (x);', which is kind of doubly wrong :) Tom