X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/96b720b3fd7ef33da4898dbe00101cfbf9164e24..b4bc538452c92b6a2f9c935028461f5c774a4f1f:/telnet.c diff --git a/telnet.c b/telnet.c index 3536414c..6a56da77 100644 --- a/telnet.c +++ b/telnet.c @@ -662,6 +662,7 @@ static void telnet_log(Plug plug, int type, SockAddr addr, int port, msg = dupprintf("Failed to connect to %s: %s", addrbuf, error_msg); logevent(telnet->frontend, msg); + sfree(msg); } static int telnet_closing(Plug plug, const char *error_msg, int error_code,