1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-27 00:40:26 +00:00

Fix destruction order.

This commit is contained in:
Calvin Rose 2021-08-21 13:30:09 -05:00
parent 846c9e5e12
commit 257c8b65c2

View File

@ -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;
}