mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Fix occasional segfault when parsing JSON in http server
This commit is contained in:
@@ -63,8 +63,8 @@ const HashMapPool = struct {
|
||||
}
|
||||
}
|
||||
|
||||
var new_node = allocator.create(LinkedList.Node) catch unreachable;
|
||||
new_node.* = LinkedList.Node{ .data = HashMap.initContext(allocator, IdentityContext{}) };
|
||||
var new_node = default_allocator.create(LinkedList.Node) catch unreachable;
|
||||
new_node.* = LinkedList.Node{ .data = HashMap.initContext(default_allocator, IdentityContext{}) };
|
||||
return new_node;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user