From: simon Date: Fri, 15 Jul 2011 18:21:30 +0000 (+0000) Subject: Missing free. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/783c82b3c5bb0f07deae79e012a864a54bec8749?hp=cfce7239bb87f74d38c81f83ebd8e852144b5baa Missing free. git-svn-id: svn://svn.tartarus.org/sgt/putty@9219 cda61777-01e9-0310-a592-d414129be87e --- 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;