From d64070838ebba86f00fb3755df5d3e65106e1628 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Tue, 24 Mar 2015 10:17:37 -0400 Subject: free NULL cleanup Start ensuring all OpenSSL "free" routines allow NULL, and remove any if check before calling them. This gets DH_free, DSA_free, RSA_free Reviewed-by: Matt Caswell --- apps/dsaparam.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/dsaparam.c') diff --git a/apps/dsaparam.c b/apps/dsaparam.c index 74eefdc871..fc1c817604 100644 --- a/apps/dsaparam.c +++ b/apps/dsaparam.c @@ -438,8 +438,7 @@ int MAIN(int argc, char **argv) BIO_free(in); if (out != NULL) BIO_free_all(out); - if (dsa != NULL) - DSA_free(dsa); + DSA_free(dsa); apps_shutdown(); OPENSSL_EXIT(ret); } -- cgit v1.2.3