Skip to content

Commit b9ab192

Browse files
committed
fixup!
1 parent 1581d3f commit b9ab192

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ set(BUILD_WASI "simple" CACHE STRING "WASI implementation")
5959
add_subdirectory(deps/wasm3 EXCLUDE_FROM_ALL)
6060

6161
if(BUILD_WITH_MIMALLOC)
62+
option(MI_OVERRIDE "" OFF)
6263
option(MI_BUILD_SHARED "" OFF)
6364
option(MI_BUILD_STATIC "" ON)
6465
option(MI_BUILD_OBJECT "" OFF)

src/vm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static void *tjs__realloc(JSMallocState *s, void *ptr, size_t size)
7373
if (size == 0) {
7474
s->malloc_count--;
7575
s->malloc_size -= old_size;
76-
free(ptr);
76+
mi_free(ptr);
7777
return NULL;
7878
}
7979
if (s->malloc_size + size - old_size > s->malloc_limit)

0 commit comments

Comments
 (0)