Skip to content

Commit 9636706

Browse files
Fix heap leak on soft reset.
1 parent b75a4f6 commit 9636706

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ void mp_js_main(int heap_size) {
102102
microbit_hal_deinit();
103103
gc_sweep_all();
104104
mp_deinit();
105+
free(heap);
105106
}
106107
}
107108

0 commit comments

Comments
 (0)