diff cli-runopts.c @ 412:47bcc3536bd5

merge of '691c56da3db2685f58ea53540a73c1b79e7df9cd' and 'e0efd546c3cdb2828971e41af2afe43e850c641d'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Feb 2007 10:44:12 +0000
parents b895f91c2ee6 253958302381
children ab57ba0cb667
line wrap: on
line diff
--- a/cli-runopts.c	Sun Feb 04 10:32:59 2007 +0000
+++ b/cli-runopts.c	Sun Feb 04 10:44:12 2007 +0000
@@ -363,7 +363,8 @@
 
 	TRACE(("enter addforward"))
 
-	/* We probably don't want to be editing argvs */
+	/* We need to split the original argument up. This var
+	   is never free()d. */ 
 	str = m_strdup(origstr);
 
 	listenport = str;
@@ -415,8 +416,6 @@
 	newfwd->next = *fwdlist;
 	*fwdlist = newfwd;
 
-	m_free(str);
-
 	TRACE(("leave addforward: done"))
 	return;