mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Free INFO even if it doesn't register a closer.
This commit is contained in:
parent
1484fe09f5
commit
49dfcb6036
@ -1,3 +1,8 @@
|
||||
2003-11-06 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* connect.c (xclose): Free INFO even if it doesn't provide a
|
||||
closer.
|
||||
|
||||
2003-11-06 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* connect.c: Updated all callers of
|
||||
|
@ -753,12 +753,14 @@ xclose (int fd)
|
||||
info = hash_table_get (extended_map, (void *) fd);
|
||||
|
||||
if (info && info->closer)
|
||||
{
|
||||
info->closer (fd, info->ctx);
|
||||
else
|
||||
sock_close (fd);
|
||||
|
||||
if (info)
|
||||
{
|
||||
hash_table_remove (extended_map, (void *) fd);
|
||||
xfree (info);
|
||||
++extended_map_modified_tick;
|
||||
}
|
||||
else
|
||||
sock_close (fd);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user