[svn:parrot] r48677 - trunk/src/pmc
nwellnhof at svn.parrot.org
nwellnhof at svn.parrot.org
Thu Aug 26 20:05:11 UTC 2010
Author: nwellnhof
Date: Thu Aug 26 20:05:11 2010
New Revision: 48677
URL: https://trac.parrot.org/parrot/changeset/48677
Log:
Fix a potentially nasty bug in the CallContext PMC
Modified:
trunk/src/pmc/callcontext.pmc
Modified: trunk/src/pmc/callcontext.pmc
==============================================================================
--- trunk/src/pmc/callcontext.pmc Thu Aug 26 19:54:42 2010 (r48676)
+++ trunk/src/pmc/callcontext.pmc Thu Aug 26 20:05:11 2010 (r48677)
@@ -208,7 +208,7 @@
GETATTR_CallContext_num_positionals(interp, self, num_positionals);
memcpy(new_array, array, num_positionals * sizeof (Pcc_cell));
- if (num_positionals > 8)
+ if (allocated_positionals > 8)
Parrot_gc_free_memory_chunk(interp, array);
else
Parrot_gc_free_fixed_size_storage(interp,
More information about the parrot-commits
mailing list