X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_socket.c;h=94dbfc52fb0eee54e3942f3146520efafaac5a1d;hp=6cccc7afa62ed615c26fac9a53e9ad5787bf5ecf;hb=a5b02206150dc653355cdc60286c27482b5a4f93;hpb=a8477ebaa09990b3688164cbe5cf661c4189541d diff --git a/mutt_socket.c b/mutt_socket.c index 6cccc7a..94dbfc5 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -189,7 +189,7 @@ void mutt_socket_free (CONNECTION * conn) /* head is special case, doesn't need prev updated */ if (iter == conn) { Connections = iter->next; - FREE (&iter); + mem_free (&iter); return; } @@ -197,7 +197,7 @@ void mutt_socket_free (CONNECTION * conn) if (iter->next == conn) { tmp = iter->next; iter->next = tmp->next; - FREE (&tmp); + mem_free (&tmp); return; } iter = iter->next; @@ -326,7 +326,7 @@ static CONNECTION *socket_new_conn (void) { CONNECTION *conn; - conn = (CONNECTION *) safe_calloc (1, sizeof (CONNECTION)); + conn = (CONNECTION *) mem_calloc (1, sizeof (CONNECTION)); conn->fd = -1; return conn; @@ -406,11 +406,12 @@ int raw_socket_open (CONNECTION * conn) rc = getaddrinfo (host_idna, port, &hints, &res); # ifdef HAVE_LIBIDN - FREE (&host_idna); + mem_free (&host_idna); # endif if (rc) { mutt_error (_("Could not find the host \"%s\""), conn->account.host); + mutt_sleep (2); return -1; } @@ -456,7 +457,7 @@ int raw_socket_open (CONNECTION * conn) if ((he = gethostbyname (host_idna)) == NULL) { # ifdef HAVE_LIBIDN - FREE (&host_idna); + mem_free (&host_idna); # endif mutt_error (_("Could not find the host \"%s\""), conn->account.host); @@ -464,7 +465,7 @@ int raw_socket_open (CONNECTION * conn) } # ifdef HAVE_LIBIDN - FREE (&host_idna); + mem_free (&host_idna); # endif mutt_message (_("Connecting to %s..."), conn->account.host);