Skip to content

Commit

Permalink
fix a leak establishign a connection
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Nov 24, 2024
1 parent 7d4771e commit 168c2a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-11-24 Richard Frith-Macdonald <[email protected]>

* Source/NSSocketPort.m: fix leak of data object when establishing a
new connection.

2024-11-22 Richard Frith-Macdonald <[email protected]>

* Tools/AGSIndex: (-makeRefs:) process child nodes in loop rather
Expand Down
3 changes: 2 additions & 1 deletion Source/NSSocketPort.m
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,8 @@ - (void) receivedEventWrite
* first thing to do is send out port information (after setting
* up a TLS session if necessary).
*/
ASSIGN(cData, newDataWithEncodedPort(p));
RELEASE(cData);
cData = newDataWithEncodedPort(p);
cLength = 0;

#if defined(HAVE_GNUTLS)
Expand Down

0 comments on commit 168c2a4

Please sign in to comment.