From b06220f359c293311bab7d4c1a282cb5945716ed Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Fri, 18 Apr 2008 23:18:34 +0200 Subject: [PATCH] Revert using Gnulib's alloc functions in connect.c. --- src/connect.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/connect.c b/src/connect.c index d8e20368..2626ef32 100644 --- a/src/connect.c +++ b/src/connect.c @@ -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 as that of the covered work. */ -#define USE_GNULIB_ALLOC - #include "wget.h" #include @@ -768,7 +766,7 @@ fd_register_transport (int fd, struct transport_implementation *imp, void *ctx) hash key. */ assert (fd >= 0); - info = xmalloc (sizeof (struct transport_info)); + info = xnew (struct transport_info); info->imp = imp; info->ctx = ctx; if (!transport_map) @@ -960,7 +958,7 @@ fd_close (int fd) if (info) { hash_table_remove (transport_map, (void *)(intptr_t) fd); - free (info); + xfree (info); ++transport_map_modified_tick; } } -- 2.39.2