[svn:parrot] r49661 - trunk/src

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


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

Log:
[GC] Only free PMC_data(pmc) if it exists.

Modified:
   trunk/src/pmc.c

Modified: trunk/src/pmc.c
==============================================================================
--- trunk/src/pmc.c	Mon Oct 25 03:15:05 2010	(r49660)
+++ trunk/src/pmc.c	Mon Oct 25 03:15:09 2010	(r49661)
@@ -120,7 +120,7 @@
 
     PObj_gc_CLEAR(pmc);
 
-    if (pmc->vtable->attr_size)
+    if (pmc->vtable->attr_size && PMC_data(pmc))
         Parrot_gc_free_pmc_attributes(interp, pmc);
     else
         PMC_data(pmc) = NULL;


More information about the parrot-commits mailing list