Michael Stefaniuc : netapi32: Remove redundant NULL check before HeapFree() . Found by Smatch.
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 08:19:42 CST 2007
Module: wine
Branch: master
Commit: 28a7d58837a6df97a9a582cb38f2f14474538bd2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=28a7d58837a6df97a9a582cb38f2f14474538bd2
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Sat Nov 17 19:15:22 2007 +0100
netapi32: Remove redundant NULL check before HeapFree(). Found by Smatch.
---
dlls/netapi32/access.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/netapi32/access.c b/dlls/netapi32/access.c
index 15cd84c..dc9498b 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;
}
More information about the wine-cvs
mailing list