Skip to content

Commit

Permalink
In pbc_to_exe, wrapped call to Parrot_api_string_free_exported_ascii(…
Browse files Browse the repository at this point in the history
…) inside an 'if' statement to catch potential errors.
  • Loading branch information
soh-cah-toa committed Sep 27, 2011
1 parent 0777e50 commit c42af46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/dev/pbc_to_exe.pir
Expand Up @@ -163,7 +163,9 @@ HEADER

if (msg_raw) {
fprintf(vector, "%s%s", msg_raw, newline ? "\n" : "");
Parrot_api_string_free_exported_ascii(interp, msg_raw);

if (!Parrot_api_string_free_exported_ascii(interp, msg_raw))
show_last_error_and_exit(interp);
}
}

Expand Down

0 comments on commit c42af46

Please sign in to comment.