Fix another giant batch of resource leaks. (Mostly memory, but there's
[u/mdw/putty] / rlogin.c
index faf3daf..f582f0c 100644 (file)
--- a/rlogin.c
+++ b/rlogin.c
@@ -58,6 +58,7 @@ static void rlogin_log(Plug plug, int type, SockAddr addr, int port,
        msg = dupprintf("Failed to connect to %s: %s", addrbuf, error_msg);
 
     logevent(rlogin->frontend, msg);
+    sfree(msg);
 }
 
 static int rlogin_closing(Plug plug, const char *error_msg, int error_code,