diff options
author | Matt Caswell <matt@openssl.org> | 2016-04-27 14:59:35 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-01 18:00:53 +0100 |
commit | 1c422164d8343688b8356fcb26f6b7e06921433b (patch) | |
tree | 802a9073e48293048c33ad63d9479829360ba696 /apps/crl2p7.c | |
parent | a855d1a155dd88aaf136bdc1deb88e68558b94fd (diff) | |
download | openssl-new-1c422164d8343688b8356fcb26f6b7e06921433b.tar.gz |
Fix memory leak in crl2pkcs7 app
The crl2pkcs7 app leaks a stack of OPENSSL_STRINGs in error paths.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/crl2p7.c')
-rw-r--r-- | apps/crl2p7.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/crl2p7.c b/apps/crl2p7.c index 73e62702ce..1631258793 100644 --- a/apps/crl2p7.c +++ b/apps/crl2p7.c @@ -143,8 +143,6 @@ int crl2pkcs7_main(int argc, char **argv) } } - sk_OPENSSL_STRING_free(certflst); - out = bio_open_default(outfile, 'w', outformat); if (out == NULL) goto end; @@ -160,6 +158,7 @@ int crl2pkcs7_main(int argc, char **argv) } ret = 0; end: + sk_OPENSSL_STRING_free(certflst); BIO_free(in); BIO_free_all(out); PKCS7_free(p7); |