[PATCH] mscoree: Remove a redundant NULL check before heap_free()

Michael Stefaniuc mstefani at winehq.org
Mon Apr 29 14:13:20 CDT 2019


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/mscoree/corruntimehost.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index 95f6a9a892..13619bdc19 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -1707,8 +1707,7 @@ static BOOL try_create_registration_free_com(REFIID clsid, WCHAR *classname, UIN
     ret = TRUE;
 
 end:
-    if (assembly_info)
-        heap_free(assembly_info);
+    heap_free(assembly_info);
 
     if (guid_info.hActCtx)
         ReleaseActCtx(guid_info.hActCtx);
-- 
2.20.1




More information about the wine-devel mailing list