janitorial: Remove redundant NULL pointer checks before HeapFree'ing them.
Some HeapFree's are hidden behind macros. Found by smatch.
diff --git a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c
index ebe7e2e..664f901 100644
--- a/dlls/secur32/secur32.c
+++ b/dlls/secur32/secur32.c
@@ -666,8 +666,7 @@
{
LIST_FOR_EACH_ENTRY(provider, &providerTable->table, SecureProvider, entry)
{
- if (provider->moduleName)
- SECUR32_FREE(provider->moduleName);
+ SECUR32_FREE(provider->moduleName);
if (provider->lib)
FreeLibrary(provider->lib);
}
@@ -689,7 +688,7 @@
*/
SECURITY_STATUS WINAPI FreeContextBuffer(PVOID pv)
{
- if (pv) SECUR32_FREE(pv);
+ SECUR32_FREE(pv);
return SEC_E_OK;
}