artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e46798c
)
Plug a memory leak in tls_keypair_cert_hash(), introduced in r1.60.
author
jsing
<jsing@openbsd.org>
Thu, 22 Jun 2017 17:55:48 +0000
(17:55 +0000)
committer
jsing
<jsing@openbsd.org>
Thu, 22 Jun 2017 17:55:48 +0000
(17:55 +0000)
lib/libtls/tls.c
patch
|
blob
|
history
diff --git
a/lib/libtls/tls.c
b/lib/libtls/tls.c
index
77b936e
..
e6135ae
100644
(file)
--- a/
lib/libtls/tls.c
+++ b/
lib/libtls/tls.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: tls.c,v 1.6
4 2017/06/22 17:47:56
jsing Exp $ */
+/* $OpenBSD: tls.c,v 1.6
5 2017/06/22 17:55:48
jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@
-297,7
+297,9
@@
tls_keypair_cert_hash(struct tls_keypair *keypair, char **hash)
goto err;
rv = tls_cert_hash(cert, hash);
+
err:
+ X509_free(cert);
BIO_free(membio);
return (rv);