Skip to content
Snippets Groups Projects
Commit 55ed5531 authored by Matt Johnston's avatar Matt Johnston
Browse files

Revert bogus fix, make a note that the var is meant to 'leak'

--HG--
extra : convert_revision : e0efd546c3cdb2828971e41af2afe43e850c641d
parent d2f292b3
No related merge requests found
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment