diff options
author | 2022-11-24 18:57:40 -0800 | |
---|---|---|
committer | 2022-11-24 18:57:40 -0800 | |
commit | 47f0e14477721a0c1c9f5458208c632fc2e4a370 (patch) | |
tree | 47278bf3926be48e1b2c3d8d3eb6210ca22a9617 /src/bun.js/api/filesystem_router.zig | |
parent | 0ef25c65ecda54c38064f2e698bb80d642431fbe (diff) | |
download | bun-47f0e14477721a0c1c9f5458208c632fc2e4a370.tar.gz bun-47f0e14477721a0c1c9f5458208c632fc2e4a370.tar.zst bun-47f0e14477721a0c1c9f5458208c632fc2e4a370.zip |
Use is_in_heap_region instead of _check_owned
Diffstat (limited to 'src/bun.js/api/filesystem_router.zig')
-rw-r--r-- | src/bun.js/api/filesystem_router.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |