From c708cd8f2616b75eb1bfb9319a2d43a7c194d1bc Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 29 Jul 2023 04:24:08 -0700 Subject: experiment: use bmalloc/libpas instead of mimalloc in most places --- 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 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); -- cgit v1.2.3