[svn:parrot] r49659 - trunk/src/gc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Mon Oct 25 03:15:01 UTC 2010


Author: chromatic
Date: Mon Oct 25 03:15:00 2010
New Revision: 49659
URL: https://trac.parrot.org/parrot/changeset/49659

Log:
[GC] Plugged a memory leak of MarkSweep_GC struct.

Modified:
   trunk/src/gc/gc_ms2.c

Modified: trunk/src/gc/gc_ms2.c
==============================================================================
--- trunk/src/gc/gc_ms2.c	Mon Oct 25 03:14:56 2010	(r49658)
+++ trunk/src/gc/gc_ms2.c	Mon Oct 25 03:15:00 2010	(r49659)
@@ -674,6 +674,10 @@
         Parrot_gc_pool_destroy(interp, self->pmc_allocator);
         Parrot_gc_pool_destroy(interp, self->string_allocator);
         Parrot_gc_fixed_allocator_destroy(interp, self->fixed_size_allocator);
+
+        /* now free this GC system */
+        mem_sys_free(self);
+        interp->gc_sys->gc_private = NULL;
     }
 }
 


More information about the parrot-commits mailing list