Browse Source

Fix unlikely memory leak introduced in 418f3d6298beb27e050

This is CID 1416880; bug not in any released Tor.
Nick Mathewson 6 years ago
parent
commit
8de4a80125
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/or/connection_or.c

+ 1 - 0
src/or/connection_or.c

@@ -1549,6 +1549,7 @@ connection_or_check_valid_tls_handshake(or_connection_t *conn,
 
   if (identity_rcvd) {
     if (crypto_pk_get_digest(identity_rcvd, digest_rcvd_out) < 0) {
+      crypto_pk_free(identity_rcvd);
       return -1;
     }
   } else {