Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix a multi dispatch memory leak, patch by mls++
  • Loading branch information
moritz committed Aug 26, 2011
1 parent 4d93b19 commit 0bfcef6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/6model/multi_dispatch.c
Expand Up @@ -222,6 +222,14 @@ static candidate_info** sort_candidates(PARROT_INTERP, PMC *candidates) {

/* Free memory associated with the graph. */
for (i = 0; i < num_candidates; i++) {
candidate_info *info = graph[i]->info;
if (info) {
if (info->types)
mem_sys_free(info->types);
if (info->definednesses)
mem_sys_free(info->definednesses);
mem_sys_free(info);
}
mem_sys_free(graph[i]->edges);
mem_sys_free(graph[i]);
}
Expand Down

0 comments on commit 0bfcef6

Please sign in to comment.