]> git.eshelyaron.com Git - emacs.git/commitdiff
* process.c (check_for_dns): Free the result data.
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Jan 2016 01:39:52 +0000 (02:39 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Jan 2016 01:39:52 +0000 (02:39 +0100)
src/process.c

index 90e18d720144ac70ddc8fc6c6cbbbccc289d0915..dafd5330d3091ce71a1aa27ab3793087a8f6f3c5 100644 (file)
@@ -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 */