GNU bug report logs - #15802
24.3.50; PUSH_HANDLER leaks memory?

Previous Next

Package: emacs;

Reported by: Jan Djärv <jan.h.d <at> me.com>

Date: Mon, 4 Nov 2013 18:43:01 UTC

Severity: normal

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jan Djärv <jan.h.d <at> me.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15802 <at> debbugs.gnu.org
Subject: bug#15802: 24.3.50; PUSH_HANDLER leaks memory?
Date: Tue, 05 Nov 2013 07:53:47 +0100
Hello.

5 nov 2013 kl. 03:48 skrev Stefan Monnier <monnier <at> iro.umontreal.ca>:

>> 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.





This bug report was last modified 11 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.