diff options
author | Matt Caswell <matt@openssl.org> | 2018-03-14 14:32:48 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-03-15 13:32:23 +0000 |
commit | 6403471dc838572d4fd1e1609a81a999f0d71b2f (patch) | |
tree | a46c3a001a55eeb4787206ad756a006c8d142c1c | |
parent | 23324ce79c5fdc1ccd042c43ee1ef88aa1f294bc (diff) |
Fix a memory leak in the ca application
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5627)
-rw-r--r-- | apps/ca.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1864,11 +1864,11 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, irow = NULL; ok = 1; end: - if (irow != NULL) { + if (ok != 1) { for (i = 0; i < DB_NUMBER; i++) OPENSSL_free(row[i]); - OPENSSL_free(irow); } + OPENSSL_free(irow); X509_NAME_free(CAname); X509_NAME_free(subject); |