Missing free.
[u/mdw/putty] / cmdline.c
index acd3c66..cf114c0 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -313,6 +313,7 @@ int cmdline_process_param(char *p, char *value, int need_save, Conf *conf)
        host = dupprintf("%.*s", portp - value, value);
        conf_set_str(conf, CONF_ssh_nc_host, host);
        conf_set_int(conf, CONF_ssh_nc_port, atoi(portp + 1));
+        sfree(host);
     }
     if (!strcmp(p, "-m")) {
        char *filename, *command;