1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Revert using Gnulib's alloc functions in connect.c.

This commit is contained in:
Steven Schubiger 2008-04-18 23:18:34 +02:00
parent d8e970f494
commit b06220f359

View File

@ -28,8 +28,6 @@ Corresponding Source for a non-source form of such a combination
shall include the source code for the parts of OpenSSL used as well shall include the source code for the parts of OpenSSL used as well
as that of the covered work. */ as that of the covered work. */
#define USE_GNULIB_ALLOC
#include "wget.h" #include "wget.h"
#include <stdio.h> #include <stdio.h>
@ -768,7 +766,7 @@ fd_register_transport (int fd, struct transport_implementation *imp, void *ctx)
hash key. */ hash key. */
assert (fd >= 0); assert (fd >= 0);
info = xmalloc (sizeof (struct transport_info)); info = xnew (struct transport_info);
info->imp = imp; info->imp = imp;
info->ctx = ctx; info->ctx = ctx;
if (!transport_map) if (!transport_map)
@ -960,7 +958,7 @@ fd_close (int fd)
if (info) if (info)
{ {
hash_table_remove (transport_map, (void *)(intptr_t) fd); hash_table_remove (transport_map, (void *)(intptr_t) fd);
free (info); xfree (info);
++transport_map_modified_tick; ++transport_map_modified_tick;
} }
} }