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

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Wed Feb 25 17:50:31 UTC 2009


Author: pmichaud
Date: Wed Feb 25 17:50:30 2009
New Revision: 37000
URL: https://trac.parrot.org/parrot/changeset/37000

Log:
[core]:  Eliminate double-free problem with contexts in fakecutables
* ...and probably other places as well
* jonathan++ for tracking down the source of the problem

Modified:
   trunk/src/gc/register.c

Modified: trunk/src/gc/register.c
==============================================================================
--- trunk/src/gc/register.c	Wed Feb 25 17:03:58 2009	(r36999)
+++ trunk/src/gc/register.c	Wed Feb 25 17:50:30 2009	(r37000)
@@ -162,11 +162,7 @@
 
     while (context) {
         Parrot_Context * const prev = context->caller_ctx;
-        if (context->n_regs_used) {
-            mem_sys_free(context->n_regs_used);
-            context->n_regs_used = NULL;
-        }
-        mem_sys_free(context);
+        Parrot_free_context(interp, context, 1);
         context = prev;
     }
 


More information about the parrot-commits mailing list