Missing free.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 15 Jul 2011 18:21:30 +0000 (18:21 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 15 Jul 2011 18:21:30 +0000 (18:21 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@9219 cda61777-01e9-0310-a592-d414129be87e

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;