diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-03 21:45:55 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-03 22:12:23 +0200 |
commit | bbe07972e65024dba7d9fa767ba8d8907829a986 (patch) | |
tree | 66bacba5980c80a3775bce0000af1df55191ea5f /nsswitch/libwbclient/wbc_pwd.c | |
parent | 710aa773d54509de34404f9992c5058ddfa45f3b (diff) | |
download | samba-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.c | 5 |
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; } |