]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix an accidentally removed free in 385853a282138a61, and repair a check.
authorNick Mathewson <nickm@torproject.org>
Tue, 27 Oct 2009 03:13:29 +0000 (23:13 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 27 Oct 2009 03:13:29 +0000 (23:13 -0400)
src/or/control.c

index 7bc8fa7ae0e3b320b410fbda5c1656f719449b0e..009994302ef835f0fda1f120fc771325ec5ddf45 100644 (file)
@@ -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;
 }