summaryrefslogtreecommitdiffhomepage
path: root/cli-runopts.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-02-04 10:44:07 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-02-04 10:44:07 +0000
commit55ed5531b5ec99792154f1e82ccccdc8d23abbca (patch)
treec08d294591f4e45f4b9e35e3eae5dbc940fefe36 /cli-runopts.c
parentd2f292b3adec9bdb2bbb221b1d05f13f3da21be7 (diff)
Revert bogus fix, make a note that the var is meant to 'leak'
--HG-- extra : convert_revision : e0efd546c3cdb2828971e41af2afe43e850c641d
Diffstat (limited to 'cli-runopts.c')
-rw-r--r--cli-runopts.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli-runopts.c b/cli-runopts.c
index d8eada7..269f5b3 100644
--- a/cli-runopts.c
+++ b/cli-runopts.c
@@ -348,7 +348,8 @@ static void addforward(char* origstr, struct TCPFwdList** fwdlist) {
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;
@@ -400,8 +401,6 @@ static void addforward(char* origstr, struct TCPFwdList** fwdlist) {
newfwd->next = *fwdlist;
*fwdlist = newfwd;
- m_free(str);
-
TRACE(("leave addforward: done"))
return;