From f755839877b2c565f8087d22c13e475b145829c3 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Wed, 11 Feb 2026 20:02:42 +0100 Subject: fix wrong allocator in `endpoint_to_string` Fixes #6251 --- core/net/addr.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/addr.odin b/core/net/addr.odin index d29b46b65..b75a10562 100644 --- a/core/net/addr.odin +++ b/core/net/addr.odin @@ -608,13 +608,13 @@ address_to_string :: proc(addr: Address, allocator := context.temp_allocator) -> return strings.to_string(b) } -// Returns a temporarily-allocated string representation of the endpoint. +// Returns a temporarily-allocated string representation of the endpoint (if allocator isn't overwritten). // If there's a port, uses the `ip4address:port` or `[ip6address]:port` format, respectively. endpoint_to_string :: proc(ep: Endpoint, allocator := context.temp_allocator) -> string { if ep.port == 0 { return address_to_string(ep.address, allocator) } else { - s := address_to_string(ep.address, context.temp_allocator) + s := address_to_string(ep.address, allocator) b := strings.builder_make(allocator) switch a in ep.address { case IP4_Address: -- cgit v1.2.3