Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2011-09-24
02:43 • Closed ticket [3084338fff]: memleak in the IPv6 code plus 6 other changes artifact: 63db393e03 user: dgp
2010-11-09
21:01 • Ticket [3084338fff]: 4 changes artifact: 99c0930e44 user: rmax
2010-10-12
18:46 • Ticket [3084338fff]: 5 changes artifact: a2e555b951 user: rmax
2010-10-10
00:36 • Ticket [3084338fff]: 1 change artifact: c3e50a7217 user: dkf
2010-10-09
17:21 • New ticket [3084338fff]. artifact: d3de6cb4fe user: fireegl

memleak in the IPv6 code

Closed / Fixed3084338fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 15 years ago
Descriptionplain2010-10-09 17:21:32
Run this and watch the memory usage go up:

while 1 { close [socket -async 127.0.0.1 12345] }
dkf Ticket [3084338fff]: 1 change [History diff]2010-10-10 00:36:01
rmaxplain2010-10-12 18:46:33
Ah - my code was checking for == NULL instead of != NULL when looking if addrinfo pointers need freeing.
And the test wasn't even needed, because freeaddrinfo() is fine with null pointers, otherwise the test suite would have crashed while the wrong logic was in place.
Fixed on HEAD.
rmaxplain2010-11-09 21:01:51
Fixed in CVS on 2010-10-12.
dgpplain2011-09-24 02:43:31
allow_comments - 1
Log in (anonymous is fine) to add a comment.