summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient/wbc_pwd.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-03 21:45:55 +0200
committerVolker Lendecke <vl@samba.org>2010-04-03 22:12:23 +0200
commitbbe07972e65024dba7d9fa767ba8d8907829a986 (patch)
tree66bacba5980c80a3775bce0000af1df55191ea5f /nsswitch/libwbclient/wbc_pwd.c
parent710aa773d54509de34404f9992c5058ddfa45f3b (diff)
downloadsamba-bbe07972e65024dba7d9fa767ba8d8907829a986.tar.gz
samba-bbe07972e65024dba7d9fa767ba8d8907829a986.tar.bz2
samba-bbe07972e65024dba7d9fa767ba8d8907829a986.zip
libwbclient: Both talloc_free and wbcFreeMemory deal with NULL
This is in line with the ANSI C standard definition of free(NULL)
Diffstat (limited to 'nsswitch/libwbclient/wbc_pwd.c')
-rw-r--r--nsswitch/libwbclient/wbc_pwd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/nsswitch/libwbclient/wbc_pwd.c b/nsswitch/libwbclient/wbc_pwd.c
index bae6bf91ea..9b8df4d907 100644
--- a/nsswitch/libwbclient/wbc_pwd.c
+++ b/nsswitch/libwbclient/wbc_pwd.c
@@ -224,10 +224,7 @@ wbcErr wbcGetpwsid(struct wbcDomainSid *sid, struct passwd **pwd)
BAIL_ON_PTR_ERROR(*pwd, wbc_status);
done:
- if (sid_string) {
- wbcFreeMemory(sid_string);
- }
-
+ wbcFreeMemory(sid_string);
return wbc_status;
}