diff options
author | Matt Caswell <matt@openssl.org> | 2018-03-14 14:40:18 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-03-15 13:34:57 +0000 |
commit | 16a345e5c8b5c1166a5e214a8ee7ebf21d447fbe (patch) | |
tree | 32ff71b838473463e2f45d80ce24e46b36b23743 /apps/ca.c | |
parent | dacdc5fe526d5b838f51711ba602d375159e488a (diff) |
Fix a memory leak in the ca application
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5445)
Diffstat (limited to 'apps/ca.c')
-rw-r--r-- | apps/ca.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2155,11 +2155,11 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509, irow = NULL; ok = 1; err: - if (irow != NULL) { + if (ok != 1) { for (i = 0; i < DB_NUMBER; i++) OPENSSL_free(row[i]); - OPENSSL_free(irow); } + OPENSSL_free(irow); if (CAname != NULL) X509_NAME_free(CAname); |