Skip to content

Commit

Permalink
Fix destruction order.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpakin committed Aug 21, 2021
1 parent 846c9e5 commit 257c8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2519,9 +2519,9 @@ static JanetEVGenericMessage janet_go_thread_subr(JanetEVGenericMessage args) {
args.argp = "failed to start thread";
}
}
janet_restore(&tstate);
janet_buffer_deinit(buffer);
janet_free(buffer);
janet_restore(&tstate);
janet_deinit();
return args;
}
Expand Down

0 comments on commit 257c8b6

Please sign in to comment.