[EMAIL PROTECTED] (Ludovic Courtès) writes:

>       * print.c (EXIT_NESTED_DATA): Before popping from the stack,
>       reset the value at its top.  This fixes a reference leak.

Nice work, but it looks to me that PUSH_REF sets the value of the
(pstate->top)th element _before_ incrementing pstate->top.  So
shouldn't your fix do the decrement first and then set the slot to
undefined?

(Note that your fix will still prevent most reference leaks, just not
the outermost one.  So that's why it may appear to be working
already.)

Also, is the () -> (void) change strictly related?

    Neil



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to