Author: chromatic
Date: Thu Mar 27 12:14:48 2008
New Revision: 26585

Modified:
   trunk/src/headers.c

Log:
[GC] Fixed a memory leak introduced in r26379.  In particular, the
consolidation of Parrot_forall_header_pools() meant that the non-const PMC pool
was never swept or freed during global destruction.

Modified: trunk/src/headers.c
==============================================================================
--- trunk/src/headers.c (original)
+++ trunk/src/headers.c Thu Mar 27 12:14:48 2008
@@ -832,6 +832,8 @@
 #else
     const INTVAL start = 2;
 #endif
+
+    Parrot_forall_header_pools(interp, POOL_PMC, NULL, sweep_cb_pmc);
     Parrot_forall_header_pools(interp, POOL_PMC | POOL_CONST, NULL,
             sweep_cb_pmc);
 

Reply via email to