mirror of
https://github.com/mirror/wget.git
synced 2026-08-23 11:33:29 +08:00
[svn] Free INFO even if it doesn't register a closer.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
info->closer (fd, info->ctx);
|
||||
hash_table_remove (extended_map, (void *) fd);
|
||||
xfree (info);
|
||||
++extended_map_modified_tick;
|
||||
}
|
||||
else
|
||||
sock_close (fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user