Commit 215ca90c authored by Roger Dingledine's avatar Roger Dingledine
Browse files

fix a mild memory leak (10 bytes each time an OR connected to an OR)


svn:r410
parent 330b038d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -535,6 +535,8 @@ or_handshake_server_process_auth(connection_t *conn) {
    /* copy all relevant info to conn */
    conn->addr = router->addr, conn->port = router->or_port;
    conn->pkey = crypto_pk_dup_key(router->pkey);
    if(conn->address)
      free(conn->address);
    conn->address = strdup(router->address);

    /* generate a nonce */