[svn:parrot] r42430 - trunk/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Wed Nov 11 23:33:35 UTC 2009


Author: chromatic
Date: Wed Nov 11 23:33:34 2009
New Revision: 42430
URL: https://trac.parrot.org/parrot/changeset/42430

Log:
[PMC] Fixed a memory leak in set_integer_native() when switching from a fixed
size allocation for the returns array to a system-malloc()ed allocation.

Modified:
   trunk/src/pmc/callsignaturereturns.pmc

Modified: trunk/src/pmc/callsignaturereturns.pmc
==============================================================================
--- trunk/src/pmc/callsignaturereturns.pmc	Wed Nov 11 23:26:26 2009	(r42429)
+++ trunk/src/pmc/callsignaturereturns.pmc	Wed Nov 11 23:33:34 2009	(r42430)
@@ -147,6 +147,8 @@
                 old_values = values;
                 values     = mem_allocate_n_typed(8, void *);
                 memcpy(values, old_values, 8 * sizeof (void *));
+                Parrot_gc_free_fixed_size_storage(INTERP,
+                    8 * sizeof (void *), old_values);
             }
 
             if (cur < 8192)


More information about the parrot-commits mailing list