From ca3a82c3b364e1e584546f0f3bbb938b0b472580 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Wed, 25 Mar 2015 11:31:18 -0400 Subject: free NULL cleanup This commit handles BIO_ACCEPT_free BIO_CB_FREE BIO_CONNECT_free BIO_free BIO_free_all BIO_vfree Reviewed-by: Matt Caswell --- apps/dsaparam.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/dsaparam.c') diff --git a/apps/dsaparam.c b/apps/dsaparam.c index fc1c817604..f63ecb28ec 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -434,10 +434,8 @@ int MAIN(int argc, char **argv) end: if (cb != NULL) BN_GENCB_free(cb); - if (in != NULL) - BIO_free(in); - if (out != NULL) - BIO_free_all(out); + BIO_free(in); + BIO_free_all(out); DSA_free(dsa); apps_shutdown(); OPENSSL_EXIT(ret); -- cgit v1.2.3