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

Tom Tromey
2011-03-04T18:19:27Z

>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:

Michael> Are you sure? There is a path to "goto unknown" from before the
Michael> call to the alloc function. It might actually be null. Some
Michael> versions of 'free' don't like that.

This isn't an issue with free any more. Jim Meyering did some research
into it a while ago and fixed a number of popular free software projects
to remove the useless test. Here's a page with some interesting data:

http://www.winehq.org/pipermail/wine-patches/2006-October/031544.html

Tom