From 0677d94e2d55d473e9bbacde009bfd83df0bc67e Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 30 Jan 2016 02:39:52 +0100 Subject: [PATCH] * process.c (check_for_dns): Free the result data. --- src/process.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index 90e18d72014..dafd5330d30 100644 --- a/src/process.c +++ b/src/process.c @@ -4563,12 +4563,14 @@ check_for_dns (Lisp_Object proc) } ip_addresses = Fnreverse (ip_addresses); + freeaddrinfo (p->dns_request->ar_result); + /* Free the calling array, too? FIXME */ connect_network_socket (proc, ip_addresses); return 1; } pset_status (p, Qfailed); - return 0; + return 1; } #endif /* HAVE_GETADDRINFO_A */ -- 2.39.5