From ef247562914f4d04debf776e0a360949710737ac Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Tue, 28 Sep 2010 22:44:02 +0200 Subject: [PATCH] crypt32: Remove redundant NULL check before CryptMemFree (Smatch). --- dlls/crypt32/message.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/crypt32/message.c b/dlls/crypt32/message.c index b57c4074945..51b874e6b32 100644 --- a/dlls/crypt32/message.c +++ b/dlls/crypt32/message.c @@ -523,10 +523,9 @@ BOOL WINAPI CryptSignMessage(PCRYPT_SIGN_MESSAGE_PARA pSignPara, } else ret = FALSE; - if (crlBlob) - CryptMemFree(crlBlob); - if (certBlob) - CryptMemFree(certBlob); + + CryptMemFree(crlBlob); + CryptMemFree(certBlob); if (freeProv) CryptReleaseContext(hCryptProv, 0); return ret;