From 8de4a80125ad674c2ed3b34920ac221693061794 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 28 Aug 2017 10:08:52 -0400 Subject: [PATCH] Fix unlikely memory leak introduced in 418f3d6298beb27e050 This is CID 1416880; bug not in any released Tor. --- src/or/connection_or.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/or/connection_or.c b/src/or/connection_or.c index c776afe942..fc304e6f18 100644 --- 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 {