Skip to content

Commit

Permalink
Reviewed Rakudo C bits for memory leaks due to missing frees in the f…
Browse files Browse the repository at this point in the history
…ew places we mem_allocate. Found one missing mem_sys_free, though 'sadly' on a rarely followed code path (only affected code using junctions).
  • Loading branch information
jnthn committed Mar 25, 2010
1 parent dfbd1d5 commit e673638
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pmc/perl6multisub.pmc
Expand Up @@ -662,6 +662,7 @@ static PMC* do_dispatch(PARROT_INTERP, PMC *self, candidate_info **candidates, P
return result;
}
else if (!PMC_IS_NULL(junctional_res)) {
mem_sys_free(possibles);
return junctional_res;
}
else if (!PMC_IS_NULL(proto)) {
Expand Down

0 comments on commit e673638

Please sign in to comment.