From: Rudy Taraschi Date: Mon, 10 Nov 2003 18:02:26 +0000 (+0000) Subject: Fix double-free problems related to IDN support. X-Git-Tag: mutt-1-5-6-rel~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=573db72e8173fe85972d5dd82262abe400c8f19e;p=mutt Fix double-free problems related to IDN support. --- diff --git a/mutt_socket.c b/mutt_socket.c index 187eb4ef..b860192f 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -483,13 +483,17 @@ int raw_socket_open (CONNECTION* conn) if ((he = gethostbyname (host_idna)) == NULL) { +# ifdef HAVE_LIBIDN FREE (&host_idna); +# endif mutt_error (_("Could not find the host \"%s\""), conn->account.host); return -1; } - + +# ifdef HAVE_LIBIDN FREE (&host_idna); +# endif mutt_message (_("Connecting to %s..."), conn->account.host);