Browse Source

Fix an accidentally removed free in 385853a282138a61, and repair a check.

Nick Mathewson 16 years ago
parent
commit
311315e077
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/or/control.c

+ 2 - 1
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;
 }