]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/genrsa.c
free NULL cleanup -- coda
[thirdparty/openssl.git] / apps / genrsa.c
index a5ab658f96d5b9a8cf81deab4c7b225e07f5e773..e09e576c8b91de3c4b81f52a696a2e63fba14e45 100644 (file)
@@ -198,10 +198,8 @@ int genrsa_main(int argc, char **argv)
     if (hexe && dece) {
         BIO_printf(bio_err, "e is %s (0x%s)\n", dece, hexe);
     }
-    if (hexe)
-        OPENSSL_free(hexe);
-    if (dece)
-        OPENSSL_free(dece);
+    OPENSSL_free(hexe);
+    OPENSSL_free(dece);
     {
         PW_CB_DATA cb_data;
         cb_data.password = passout;