summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_depr.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rsa/rsa_depr.c')
-rw-r--r--crypto/rsa/rsa_depr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/rsa/rsa_depr.c b/crypto/rsa/rsa_depr.c
index 8da6ec1238..042b2b72d5 100644
--- a/crypto/rsa/rsa_depr.c
+++ b/crypto/rsa/rsa_depr.c
@@ -99,11 +99,9 @@ RSA *RSA_generate_key(int bits, unsigned long e_value,
return rsa;
}
err:
- if (e)
- BN_free(e);
+ BN_free(e);
RSA_free(rsa);
- if (cb)
- BN_GENCB_free(cb);
+ BN_GENCB_free(cb);
return 0;
}
#endif