X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_tunnel.c;h=6c5a7a3e138943372df535630322e915614b5faa;hp=34a578961bffa5ed7825e89cc89768f9a9d48ff3;hb=8e037c67a88cb4680c4391134c578e3b55a80f8a;hpb=c25bc063f35aaad6938c2022dae7a283346c2769 diff --git a/mutt_tunnel.c b/mutt_tunnel.c index 34a5789..6c5a7a3 100644 --- a/mutt_tunnel.c +++ b/mutt_tunnel.c @@ -12,6 +12,8 @@ # include "config.h" #endif +#include + #include "mutt.h" #include "mutt_socket.h" #include "mutt_tunnel.h" @@ -59,7 +61,7 @@ static int tunnel_socket_open (CONNECTION * conn) int rc; int pin[2], pout[2]; - tunnel = (TUNNEL_DATA *) mem_malloc (sizeof (TUNNEL_DATA)); + tunnel = p_new(TUNNEL_DATA, 1); conn->sockdata = tunnel; mutt_message (_("Connecting with \"%s\"..."), Tunnel); @@ -129,7 +131,7 @@ static int tunnel_socket_close (CONNECTION * conn) NONULL(mutt_strsysexit(WEXITSTATUS(status)))); mutt_sleep (2); } - mem_free (&conn->sockdata); + p_delete(&conn->sockdata); return 0; }