diff --git a/src/vm.c b/src/vm.c index dfbb8468..dddd2af6 100644 --- a/src/vm.c +++ b/src/vm.c @@ -693,6 +693,8 @@ bc_vm_shutdown(void) bc_parse_free(&vm->prs); bc_program_free(&vm->prog); + assert(false); + bc_slabvec_free(&vm->slabs); #endif // !BC_ENABLE_LIBRARY @@ -1504,16 +1506,12 @@ bc_vm_exec(void) assert(!BC_ENABLE_OSSFUZZ || BC_EXPR_EXIT == 0); - assert(vm->exprs.len); - // If there are expressions to execute... if (vm->exprs.len) { // Process the expressions. bc_vm_exprs(); - assert(false); - // Sometimes, executing expressions means we need to quit. if (!vm->no_exprs && vm->exit_exprs && BC_EXPR_EXIT) return; } @@ -1848,8 +1846,6 @@ bc_vm_atexit(BcStatus status) bc_vec_free(&vm->jmp_bufs); #endif // BC_DEBUG - assert(false); - return s; } #endif // BC_ENABLE_LIBRARY