diff options
author | Pavel Kopyl <p.kopyl@samsung.com> | 2017-11-03 18:18:59 +0300 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-05-02 08:35:32 +0200 |
commit | aebd0e5ca12d1ba0b229a4121a54afa5ea2d8aa1 (patch) | |
tree | b9fca98d10a2a71395910ef190652f41e16701aa /apps/verify.c | |
parent | c4fa1f7fc016919a5b3d4ea2aa66c77e0cc40c9d (diff) |
Fix memory leaks in CA related functions.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4700)
Diffstat (limited to 'apps/verify.c')
-rw-r--r-- | apps/verify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/verify.c b/apps/verify.c index 5ad6ef4151..38377a57e4 100644 --- a/apps/verify.c +++ b/apps/verify.c @@ -225,6 +225,7 @@ static int check(X509_STORE *ctx, const char *file, X509_STORE_set_flags(ctx, vflags); if (!X509_STORE_CTX_init(csc, ctx, x, uchain)) { + X509_STORE_CTX_free(csc); printf("error %s: X.509 store context initialization failed\n", (file == NULL) ? "stdin" : file); goto end; |