From 0edd90daafb1d5d6197737118fd26b3a7b21bf91 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 14 Mar 2021 22:54:35 +0100 Subject: [PATCH] mscoree: Remove redundant NULL check before HeapFree(). Signed-off-by: Michael Stefaniuc Signed-off-by: Esme Povirk Signed-off-by: Alexandre Julliard --- dlls/mscoree/metahost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mscoree/metahost.c b/dlls/mscoree/metahost.c index 907d8af9791..acefb2887ca 100644 --- a/dlls/mscoree/metahost.c +++ b/dlls/mscoree/metahost.c @@ -1809,7 +1809,7 @@ static MonoAssembly* CDECL mono_assembly_preload_hook_fn(MonoAssemblyName *aname TRACE("skipping Windows GAC search due to override setting\n"); done: - if (cultureW) HeapFree(GetProcessHeap(), 0, cultureW); + HeapFree(GetProcessHeap(), 0, cultureW); mono_free(stringname); return result;