X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=telnet.c;h=6a56da7745c246137aa57400d247002f9acb93ef;hb=6f6e9db932589470975ecc23261cd57eb9e710be;hp=3536414c1085194ce3e2f135652a10d1b29ab68b;hpb=38b668648aa0f832600f964d7030879d37d9a302;p=PuTTY.git 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,