Skip to content

Commit

Permalink
Fix another leak
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Nov 22, 2024
1 parent 99bb50d commit 021812f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
8 changes: 4 additions & 4 deletions Source/GSHTTPURLHandle.m
Original file line number Diff line number Diff line change
Expand Up @@ -1173,12 +1173,12 @@ - (void) bgdConnect: (NSNotification*)notification
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)
{
Expand Down

0 comments on commit 021812f

Please sign in to comment.