diff options
author | Loganaden Velvindron <logan@cvs.openbsd.org> | 2014-06-21 09:10:31 +0000 |
---|---|---|
committer | Loganaden Velvindron <logan@cvs.openbsd.org> | 2014-06-21 09:10:31 +0000 |
commit | 1e43f254f78489796e0286e4b2341fff7cb51e86 (patch) | |
tree | 4d0bb6ee4186d748a449b1f2bac73d0fe280751d /lib | |
parent | 029bd623b840ee0c0ca16b03d9a1ee177cdd31e9 (diff) |
Fix memory leak in error path.
OK from miod@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/src/ssl/ssl_cert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/ssl_cert.c b/lib/libssl/src/ssl/ssl_cert.c index 6527d4dfe4f..0864fe8d997 100644 --- a/lib/libssl/src/ssl/ssl_cert.c +++ b/lib/libssl/src/ssl/ssl_cert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_cert.c,v 1.38 2014/06/12 15:49:31 deraadt Exp $ */ +/* $OpenBSD: ssl_cert.c,v 1.39 2014/06/21 09:10:30 logan Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -308,7 +308,7 @@ err: X509_free(ret->pkeys[i].x509); EVP_PKEY_free(ret->pkeys[i].privatekey); } - + free (ret); return NULL; } |