[or-cvs] [tor/master] Fix an accidentally removed free in 385853a282138a61, and repair a check.
Nick Mathewson
nickm at seul.org
Tue Oct 27 03:12:43 UTC 2009
Author: Nick Mathewson <nickm at torproject.org>
Date: Mon, 26 Oct 2009 23:13:29 -0400
Subject: Fix an accidentally removed free in 385853a282138a61, and repair a check.
Commit: 311315e077d193e680e0e7de98e28a9d10bcb002
---
src/or/control.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/or/control.c b/src/or/control.c
index 7bc8fa7..0099943 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -853,13 +853,14 @@ handle_control_loadconf(control_connection_t *conn, uint32_t len,
break;
}
if (msg) {
- if (*errstring)
+ if (errstring)
connection_printf_to_buf(conn, "%s: %s\r\n", msg, errstring);
else
connection_printf_to_buf(conn, "%s\r\n", msg);
} else {
send_control_done(conn);
}
+ tor_free(errstring);
return 0;
}
--
1.5.6.5
More information about the tor-commits
mailing list