From bbe07972e65024dba7d9fa767ba8d8907829a986 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 3 Apr 2010 21:45:55 +0200 Subject: libwbclient: Both talloc_free and wbcFreeMemory deal with NULL This is in line with the ANSI C standard definition of free(NULL) --- nsswitch/libwbclient/wbc_pwd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'nsswitch/libwbclient/wbc_pwd.c') 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; } -- cgit