commit 8de4a80125ad674c2ed3b34920ac221693061794
parent b27c029266b3d72011b58cea2795a65613a422f6
Author: Nick Mathewson <nickm@torproject.org>
Date: Mon, 28 Aug 2017 10:08:52 -0400
Fix unlikely memory leak introduced in 418f3d6298beb27e050
This is CID 1416880; bug not in any released Tor.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/or/connection_or.c b/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 {