From e4cd58f507fd46d613ab7dfd04bff18eeb5b8b95 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 22 May 2014 21:12:17 +0000 Subject: if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully eyeballed before applying. Contributed by Cyril Roelandt on tech@ --- lib/libcrypto/rsa/rsa_pss.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libcrypto/rsa') 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; -- cgit v1.2.3