Browse Source

fix bug for freeing vm_stack

master
CismonX 1 year ago
parent
commit
e63fb0ade4
No known key found for this signature in database GPG Key ID: 315D6652268C5007
  1. 1
      src/vm_stack.c

1
src/vm_stack.c

@ -76,6 +76,7 @@ vm_stack_dup(struct vm_stack* vs) {
static inline void
vm_stack_free(struct vm_stack* vs) {
struct vm_stack* prev;
vs->refcnt = 1;
do {
prev = vs->prev;
if (--vs->refcnt == 0) {

Loading…
Cancel
Save