Fix another leak

This commit is contained in:
rfm 2024-11-22 06:18:44 +00:00
parent 99bb50d2c0
commit 021812f43d
2 changed files with 6 additions and 4 deletions

View file

@ -4,6 +4,8 @@
than recursively ... reduces the depth of recursion to the depth of
nesting children rather than the number of children, avoiding stack
overflow for large projects.
* Source/GSHTTPURLHandle.m: Fix leak of connection description strings
when reconnecting an existing handle.
2024-11-21 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1173,12 +1173,12 @@ debugWrite(GSHTTPURLHandle *handle, NSData *data)
return;
}
in = [[NSString alloc] initWithFormat: @"(%@:%@ <-- %@:%@)",
ASSIGN(in, [NSString stringWithFormat: @"(%@:%@ <-- %@:%@)",
[sock socketLocalAddress], [sock socketLocalService],
[sock socketAddress], [sock socketService]];
out = [[NSString alloc] initWithFormat: @"(%@:%@ --> %@:%@)",
[sock socketAddress], [sock socketService]]);
ASSIGN(out, [NSString stringWithFormat: @"(%@:%@ --> %@:%@)",
[sock socketLocalAddress], [sock socketLocalService],
[sock socketAddress], [sock socketService]];
[sock socketAddress], [sock socketService]]);
if (debug)
{