diff options
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 216f66b7f..814f9c9b6 100644 --- a/src/bun.js/api/filesystem_router.zig +++ b/src/bun.js/api/filesystem_router.zig @@ -550,7 +550,7 @@ pub const MatchedRoute = struct { } if (this.needs_deinit) { 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); + bun.default_allocator.free(bun.constStrToU8(this.route.pathname)); } this.params_list_holder.deinit(bun.default_allocator); |