Browse Source

Update vm.c

blueloveTH 9 months ago
parent
commit
33963d7054
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/interpreter/vm.c

+ 2 - 0
src/interpreter/vm.c

@@ -255,6 +255,8 @@ void VM__ctor(VM* self) {
 }
 
 void VM__dtor(VM* self) {
+    // reset traceinfo
+    py_sys_settrace(NULL, true);
     // destroy all objects
     ManagedHeap__dtor(&self->heap);
     // clear frames