summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-03-08 15:29:14 -0800
committerScott Shawcroft <scott@tannewt.org>2019-03-12 11:18:26 -0700
commit03be42ab847f04a89d207d98fdb28048cfedf72d (patch)
tree918df321648fc6715eee60ddf926d5dc7ee58bfe /main.c
parentef4a74e201e852a32e2e1be73ed9ba85c88fb3f4 (diff)
Enter safe mode when an allocation is attempted on an uninitialized heap.
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.c b/main.c
index f0913db6e..4b58b778d 100755
--- a/main.c
+++ b/main.c
@@ -139,8 +139,7 @@ void stop_mp(void) {
MP_STATE_VM(vfs_cur) = vfs;
#endif
- // Run any finalizers before we stop using the heap.
- gc_sweep_all();
+ gc_deinit();
}
#define STRING_LIST(...) {__VA_ARGS__, ""}