fix for stackless

This commit is contained in:
Bill Sideris 2023-02-16 00:45:41 +02:00
parent 8216aa4890
commit 659adb7172
No known key found for this signature in database
GPG Key ID: 1BEF1BCEBA58EA33
1 changed files with 2 additions and 0 deletions

2
main.c
View File

@ -379,7 +379,9 @@ STATIC void cleanup_after_vm(stacks combo, mp_obj_t exception) {
filesystem_flush();
stop_mp();
free_memory(combo.heap);
#if MICROPY_ENABLE_PYSTACK
free_memory(combo.pystack);
#endif
supervisor_move_memory();
// Let the workflows know we've reset in case they want to restart.