diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-22 21:12:17 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-22 21:12:17 +0000 |
commit | e4cd58f507fd46d613ab7dfd04bff18eeb5b8b95 (patch) | |
tree | 0104aca4bba9f2c5c1040b5537390d7b77b0d2d2 /lib/libcrypto/rsa | |
parent | e2aa95bd3f6319316d751c070fdd1173ea6432df (diff) |
if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully
eyeballed before applying. Contributed by Cyril Roelandt on tech@
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r-- | lib/libcrypto/rsa/rsa_pss.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libcrypto/rsa/rsa_pss.c b/lib/libcrypto/rsa/rsa_pss.c index bd2fde07d43..1e060141659 100644 --- a/lib/libcrypto/rsa/rsa_pss.c +++ b/lib/libcrypto/rsa/rsa_pss.c @@ -172,8 +172,7 @@ int RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, ret = 1; err: - if (DB) - free(DB); + free(DB); EVP_MD_CTX_cleanup(&ctx); return ret; @@ -284,8 +283,7 @@ int RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, ret = 1; err: - if (salt) - free(salt); + free(salt); return ret; |