test(bake): fix double free (#15634)

Co-authored-by: Don Isaac <don@bun.sh>
This commit is contained in:
Don Isaac
2024-12-06 20:06:26 -08:00
committed by GitHub
parent 0531d6756c
commit 8064a55a48

View File

@@ -1232,7 +1232,6 @@ pub const JSFrameworkRouter = struct {
pub fn finalize(this: *JSFrameworkRouter) void {
this.files.deinit(bun.default_allocator);
this.router.deinit(bun.default_allocator);
bun.default_allocator.free(this.router.types);
for (this.stored_parse_errors.items) |i| bun.default_allocator.free(i.rel_path);
this.stored_parse_errors.deinit(bun.default_allocator);
bun.destroy(this);