summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-28 10:08:52 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-28 10:08:52 -0400
commit8de4a80125ad674c2ed3b34920ac221693061794 (patch)
treeef86b9c39c8616a13eedd1809f5b6eb75871b2db /src
parentb27c029266b3d72011b58cea2795a65613a422f6 (diff)
downloadtor-8de4a80125ad674c2ed3b34920ac221693061794.tar.gz
tor-8de4a80125ad674c2ed3b34920ac221693061794.zip
Fix unlikely memory leak introduced in 418f3d6298beb27e050
This is CID 1416880; bug not in any released Tor.
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_or.c1
1 files changed, 1 insertions, 0 deletions
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 {