Skip to content

Commit 51a7382

Browse files
committed
Fix a potential crash.
1 parent 50878d0 commit 51a7382

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ bool cleanup_after_vm(supervisor_allocation* heap) {
266266
if (next_code) {
267267
if (next_code_allocation) {
268268
free_memory(next_code_allocation);
269+
next_code_allocation = NULL;
269270
}
270271
// empty filename and options 0 is equivalent to the default, no need to waste memory on that
271272
if (next_code_len > 1 || next_code->options != 0) {

0 commit comments

Comments
 (0)