Fix occasional segfault when parsing JSON in http server

This commit is contained in:
Jarred Sumner
2021-11-25 17:17:17 -08:00
parent d19a6199ea
commit 04e0910dea

View File

@@ -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;
}