Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix string passing memory leak.
  • Loading branch information
jnthn committed Nov 24, 2011
1 parent e11c46a commit 3587326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ops/nqp_dyncall.ops
Expand Up @@ -324,6 +324,7 @@ inline op nqp_native_call(out PMC, in PMC, in PMC, in PMC) :base_core {
if (!free_strs)
free_strs = mem_sys_allocate(body->num_args * sizeof(char *));
free_strs[num_strs] = str;
num_strs++;
}
}
break;
Expand Down

0 comments on commit 3587326

Please sign in to comment.