summaryrefslogtreecommitdiffhomepage
path: root/vm.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-10 19:37:40 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-11 15:49:14 +0200
commit559eff22d201f0dfa16198ae7724f173f1ea948c (patch)
tree6431c46153a93b609052b72cd62971372fed980b /vm.c
parente5e7e6277cc757475ad192f70a4b200778e1d8ee (diff)
types, vm: adjust GC api
Provide separate public ucv_gc() and ucv_freeall() functions to perform an incremental and complete GC run respectively. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 79838f9..b68e6cf 100644
--- a/vm.c
+++ b/vm.c
@@ -183,7 +183,7 @@ void uc_vm_free(uc_vm_t *vm)
printbuf_free(vm->strbuf);
- ucv_gc(vm, true);
+ ucv_freeall(vm);
for (i = 0; i < vm->restypes.count; i++)
free(vm->restypes.entries[i]);