[PATCH] iphlpapi: Remove a redundant NULL check before HeapFree()

Michael Stefaniuc mstefani at winehq.org
Tue Nov 20 13:47:20 CST 2018


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

diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 84d28ee4e6..c36f42a378 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -2787,8 +2787,7 @@ DWORD build_udp6_table( UDP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
                     break;
             }
             HeapFree( GetProcessHeap(), 0, map );
-            if (addr_scopes)
-                HeapFree( GetProcessHeap(), 0, addr_scopes );
+            HeapFree( GetProcessHeap(), 0, addr_scopes );
             fclose( fp );
         }
         else ret = ERROR_NOT_SUPPORTED;
-- 
2.14.5




More information about the wine-devel mailing list