Re: [PATCH] Fix memory leaks in options handling

2013-02-26 Thread Joseph S. Myers
On Tue, 26 Feb 2013, Jakub Jelinek wrote: > The following patch attempts to fix that by allocating strings which we want > to keep allocated forever, and from time to time lose all the pointers > pointing to them, in an obstack. That could in theory make the allocations > tiny bit faster, but mor

[PATCH] Fix memory leaks in options handling

2013-02-26 Thread Jakub Jelinek
Hi! The memory leaks in the options handling, while they perhaps aren't that big, keep cluttering valgrind --leak-check=full outputs and make it harder to find other, more severe, bugs. The following patch attempts to fix that by allocating strings which we want to keep allocated forever, and fro