From 6f5c107375d53c74980f8218088451defae84713 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Sun, 16 Jun 2024 23:04:46 +0200 Subject: [PATCH] Fix leak --- src/riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riscv.c b/src/riscv.c index 0657f692b..60c9b0a30 100644 --- a/src/riscv.c +++ b/src/riscv.c @@ -347,10 +347,10 @@ bool rv_has_halted(riscv_t *rv) void rv_delete(riscv_t *rv) { assert(rv); -#if !RV32_HAS(JIT) vm_attr_t *attr = PRIV(rv); map_delete(attr->fd_map); memory_delete(attr->mem); +#if !RV32_HAS(JIT) block_map_destroy(rv); #else mpool_destroy(rv->chain_entry_mp);