]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Missing free.
authorSimon Tatham <anakin@pobox.com>
Fri, 15 Jul 2011 18:21:30 +0000 (18:21 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 15 Jul 2011 18:21:30 +0000 (18:21 +0000)
[originally from svn r9219]

cmdline.c

index acd3c6626dcaf3998bfa67c3634c9376bb2b3c80..cf114c0ea026b70f63b0c17e4063237bbcbb1435 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;