Navigation Menu

Skip to content

Commit

Permalink
Fix segfaults when calling Parrot_exit twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Wahlmann committed Nov 25, 2010
1 parent e9934d7 commit abab373
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/exit.c
Expand Up @@ -92,6 +92,8 @@ Parrot_exit(PARROT_INTERP, int status)
node = next;
}

interp->exit_handler_list = NULL;

if (interp->api_jmp_buf)
longjmp(interp->api_jmp_buf, status);
else
Expand Down

0 comments on commit abab373

Please sign in to comment.