From 47f0e14477721a0c1c9f5458208c632fc2e4a370 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 24 Nov 2022 18:57:40 -0800 Subject: Use is_in_heap_region instead of _check_owned --- src/bun.js/api/filesystem_router.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bun.js/api/filesystem_router.zig') diff --git a/src/bun.js/api/filesystem_router.zig b/src/bun.js/api/filesystem_router.zig index c80a4ed07..859831234 100644 --- a/src/bun.js/api/filesystem_router.zig +++ b/src/bun.js/api/filesystem_router.zig @@ -523,7 +523,7 @@ pub const MatchedRoute = struct { map.deinit(); } if (this.needs_deinit) { - if (this.route.pathname.len > 0 and bun.Mimalloc.mi_check_owned(this.route.pathname.ptr)) { + if (this.route.pathname.len > 0 and bun.Mimalloc.mi_is_in_heap_region(this.route.pathname.ptr)) { bun.Mimalloc.mi_free(bun.constStrToU8(this.route.pathname).ptr); } -- cgit v1.2.3