[svn:parrot] r44456 - branches/boehm_gc_2/compilers/imcc
bacek at svn.parrot.org
bacek at svn.parrot.org
Wed Feb 24 20:20:31 UTC 2010
Author: bacek
Date: Wed Feb 24 20:20:31 2010
New Revision: 44456
URL: https://trac.parrot.org/parrot/changeset/44456
Log:
One more malloc replace in IMCC
Modified:
branches/boehm_gc_2/compilers/imcc/pcc.c
Modified: branches/boehm_gc_2/compilers/imcc/pcc.c
==============================================================================
--- branches/boehm_gc_2/compilers/imcc/pcc.c Wed Feb 24 20:20:08 2010 (r44455)
+++ branches/boehm_gc_2/compilers/imcc/pcc.c Wed Feb 24 20:20:31 2010 (r44456)
@@ -692,7 +692,7 @@
if (get_params->opnum != PARROT_OP_get_params_pc)
return 0;
- buf = (char *)malloc(strlen(this_sub->name) + 3);
+ buf = mem_gc_allocate_n_typed(interp, strlen(this_sub->name) + 3, char);
sprintf(buf, "%s at 0", this_sub->name);
if (!(label = find_sym(interp, buf))) {
More information about the parrot-commits
mailing list