summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-19 15:56:30 +0200
committerVolker Lendecke <vl@samba.org>2010-04-19 16:31:03 +0200
commitba537079cff577237b7df50ab15fabb5b0086166 (patch)
tree3be94446d07e8cca060a896f95ba11070f8968a2 /nsswitch
parent89bbc41d029e2327a9b9a3408c7552ce3e75e855 (diff)
downloadsamba-ba537079cff577237b7df50ab15fabb5b0086166.tar.gz
libwbclient: wbcFreeMemory deals fine with a NULL pointer
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/libwbclient/wbc_sid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c
index 63d566fa9f9..73bd4162472 100644
--- a/nsswitch/libwbclient/wbc_sid.c
+++ b/nsswitch/libwbclient/wbc_sid.c
@@ -672,9 +672,7 @@ wbcErr wbcListUsers(const char *domain_name,
done:
winbindd_free_response(&response);
- if (users) {
- wbcFreeMemory(users);
- }
+ wbcFreeMemory(users);
return wbc_status;
}