Michael Stefaniuc : iphlpapi: Remove a redundant NULL check before HeapFree().

Alexandre Julliard julliard at winehq.org
Tue Nov 20 15:39:51 CST 2018


Module: wine
Branch: master
Commit: 488432317206bc816432af0dd740e18979e37e58
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=488432317206bc816432af0dd740e18979e37e58

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Nov 20 20:47:20 2018 +0100

iphlpapi: Remove a redundant NULL check before HeapFree().

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard 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 84d28ee..c36f42a 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;




More information about the wine-cvs mailing list