[svn:parrot] r49558 - trunk/src/interp
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Sat Oct 16 23:15:38 UTC 2010
Author: chromatic
Date: Sat Oct 16 23:15:38 2010
New Revision: 49558
URL: https://trac.parrot.org/parrot/changeset/49558
Log:
[ops] Plugged ops hash memory leak.
Modified:
trunk/src/interp/inter_create.c
Modified: trunk/src/interp/inter_create.c
==============================================================================
--- trunk/src/interp/inter_create.c Sat Oct 16 22:13:58 2010 (r49557)
+++ trunk/src/interp/inter_create.c Sat Oct 16 23:15:38 2010 (r49558)
@@ -457,6 +457,10 @@
if (interp->thread_data)
mem_internal_free(interp->thread_data);
+ /* get rid of ops */
+ if (interp->op_hash)
+ parrot_hash_destroy(interp, interp->op_hash);
+
/* free vtables */
parrot_free_vtables(interp);
@@ -489,6 +493,8 @@
mem_internal_free(interp);
}
}
+
+ interp->op_hash = NULL;
}
More information about the parrot-commits
mailing list