]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memory leak in retry_all_listeners: Coverity CID 485
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Oct 2011 16:57:07 +0000 (12:57 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 26 Oct 2011 17:22:20 +0000 (13:22 -0400)
src/or/connection.c

index af0572905d435e7ecd03eb3d2ed68638668c28e2..bf39a5cb9c9042a8a36de58ea3817e8cae41cd56 100644 (file)
@@ -1988,13 +1988,13 @@ retry_all_listeners(smartlist_t *replaced_conns,
                       options->ControlListenAddress,
                       options->ControlPort, "127.0.0.1",
                       new_conns, 0) < 0)
-    return -1;
+    retval = -1;
   if (retry_listeners(listeners,
                       CONN_TYPE_CONTROL_LISTENER,
                       options->ControlSocket,
                       options->ControlSocket ? 1 : 0, NULL,
                       new_conns, 1) < 0)
-    return -1;
+    retval = -1;
 
   /* Any members that were still in 'listeners' don't correspond to
    * any configured port.  Kill 'em. */