Subject: Re: bug#15802: 24.3.50; PUSH_HANDLER leaks memory?

From: Jan Djärv <[email-masked]>
Date: Tue, 05 Nov 2013 07:53:47 +0100

Hello.

5 nov 2013 kl. 03:48 skrev Stefan Monnier <[email-masked]>:

>> That must be a leak then.  If you start with a NULL handlerlist, add one,
>> and then remove it, it is leaked.  Then add one and remove, more leakage.
>> And so on.  Why are they never released?
> 
> You might be right that the NULL case is not handled.
> Once we move past NULL, they are still not freed, but they're kept in
> "nextfree" and hence reused.

The NULL case must be fairly common, i.e just one PUSH and then unwind.

	Jan D.