From 28a7d58837a6df97a9a582cb38f2f14474538bd2 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sat, 17 Nov 2007 19:15:22 +0100 Subject: [PATCH] netapi32: Remove redundant NULL check before HeapFree(). Found by Smatch. --- dlls/netapi32/access.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/netapi32/access.c b/dlls/netapi32/access.c index 15cd84cd034..dc9498bfd09 100644 --- a/dlls/netapi32/access.c +++ b/dlls/netapi32/access.c @@ -178,10 +178,8 @@ NET_API_STATUS WINAPI NetUserAdd(LPCWSTR servername, break; } - if(su) - { - HeapFree(GetProcessHeap(), 0, su); - } + HeapFree(GetProcessHeap(), 0, su); + return status; }