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

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Michael Stefaniuc 2018-11-20 20:47:20 +01:00 committed by Alexandre Julliard
parent c743b72d25
commit 4884323172
1 changed files with 1 additions and 2 deletions

View File

@ -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;