[svn:parrot] r45160 - trunk/src/call

chromatic at svn.parrot.org chromatic at svn.parrot.org
Wed Mar 24 22:14:06 UTC 2010


Author: chromatic
Date: Wed Mar 24 22:14:03 2010
New Revision: 45160
URL: https://trac.parrot.org/parrot/changeset/45160

Log:
[PCC] Fixed a memory leak in Parrot_pcc_invoke_sub_from_c_args().  Rant: this
should be unnecessary, as all of the games with copying memory around between C
strings are expensive and silly.

Modified:
   trunk/src/call/pcc.c

Modified: trunk/src/call/pcc.c
==============================================================================
--- trunk/src/call/pcc.c	Wed Mar 24 19:57:19 2010	(r45159)
+++ trunk/src/call/pcc.c	Wed Mar 24 22:14:03 2010	(r45160)
@@ -92,6 +92,8 @@
             PARROT_ERRORS_RESULT_COUNT_FLAG);
     va_end(args);
     Parrot_pcc_set_signature(interp, CURRENT_CONTEXT(interp), old_call_obj);
+    mem_sys_free(arg_sig);
+    mem_sys_free(ret_sig);
 }
 
 


More information about the parrot-commits mailing list