X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4a693cfc5c3ee0e639bbee0215345e921715ab04..13f302dcc1b697cc6f8ea360c4a20eeb1fcb9159:/cmdline.c diff --git a/cmdline.c b/cmdline.c index acd3c662..cf114c0e 100644 --- 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;