summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2014-04-17 17:30:23 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2014-04-17 17:30:23 +0000
commit12389820fc8dfa2e85dc977ba297ea1e7063ec53 (patch)
tree6e3fa4089e1acac84c3e503e9dbb6fd8eb752fd4 /lib/libcrypto/x509
parentc8d470c0e3671f31f54f4e77700a093674ea97c5 (diff)
fix some of the leaks
ok miod@ looks good deraadt@
Diffstat (limited to 'lib/libcrypto/x509')
-rw-r--r--lib/libcrypto/x509/x509_lu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libcrypto/x509/x509_lu.c b/lib/libcrypto/x509/x509_lu.c
index 644ea83bace..cbbe8e86f86 100644
--- a/lib/libcrypto/x509/x509_lu.c
+++ b/lib/libcrypto/x509/x509_lu.c
@@ -187,8 +187,10 @@ X509_STORE *X509_STORE_new(void)
ret->verify=0;
ret->verify_cb=0;
- if ((ret->param = X509_VERIFY_PARAM_new()) == NULL)
+ if ((ret->param = X509_VERIFY_PARAM_new()) == NULL) {
+ free(ret);
return NULL;
+ }
ret->get_issuer = 0;
ret->check_issued = 0;