summaryrefslogtreecommitdiffstats
path: root/apps/gendsa.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-03-24 15:17:37 +0100
committerRich Salz <rsalz@akamai.com>2015-03-25 04:17:16 +0100
commitd64070838ebba86f00fb3755df5d3e65106e1628 (patch)
treedef90b3063d9ebe0f53920604d02b9786216e327 /apps/gendsa.c
parentupdate ordinals (diff)
downloadopenssl-d64070838ebba86f00fb3755df5d3e65106e1628.tar.xz
openssl-d64070838ebba86f00fb3755df5d3e65106e1628.zip
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 <matt@openssl.org>
Diffstat (limited to 'apps/gendsa.c')
-rw-r--r--apps/gendsa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gendsa.c b/apps/gendsa.c
index fd1360acd5..d330a01002 100644
--- a/apps/gendsa.c
+++ b/apps/gendsa.c
@@ -271,8 +271,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);
if (passout)
OPENSSL_free(passout);
apps_shutdown();