Skip to content

Commit 3587326

Browse files
committed
Fix string passing memory leak.
1 parent e11c46a commit 3587326

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ops/nqp_dyncall.ops

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ inline op nqp_native_call(out PMC, in PMC, in PMC, in PMC) :base_core {
324324
if (!free_strs)
325325
free_strs = mem_sys_allocate(body->num_args * sizeof(char *));
326326
free_strs[num_strs] = str;
327+
num_strs++;
327328
}
328329
}
329330
break;

0 commit comments

Comments
 (0)