From ae93e8c21ec089aa23d30df1787308ae9c2fd18d Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 15 Jun 2020 08:11:13 +1000 Subject: [PATCH] coverity 1464212, 1464214 & 1464215: Resource leaks Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/12149) --- apps/dsaparam.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dsaparam.c b/apps/dsaparam.c index dfcaf38ca9..5fd906a069 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -212,6 +212,9 @@ int dsaparam_main(int argc, char **argv) print_bignum_var(bio_out, p, "dsap", bits_p, data); print_bignum_var(bio_out, q, "dsaq", bits_p, data); print_bignum_var(bio_out, g, "dsag", bits_p, data); + BN_free(p); + BN_free(q); + BN_free(g); BIO_printf(bio_out, " DSA *dsa = DSA_new();\n" " BIGNUM *p, *q, *g;\n" "\n"); -- 2.25.1