libwbclient: Make wbcGetDisplayName not use talloc
authorVolker Lendecke <vl@samba.org>
Sat, 3 Apr 2010 12:33:17 +0000 (14:33 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 19 Apr 2010 12:27:18 +0000 (14:27 +0200)
nsswitch/libwbclient/wbc_sid.c

index c5a1d34ae6f20b0bb9acb9c06428c9a85880d001..5a003b1f8840318ebdbdcd0e632d07af95db9460 100644 (file)
@@ -766,7 +766,7 @@ wbcErr wbcGetDisplayName(const struct wbcDomainSid *sid,
 
                wbcFreeMemory(name);
 
-               name = talloc_strdup(NULL, pwd->pw_gecos);
+               name = wbcStrDup(pwd->pw_gecos);
                BAIL_ON_PTR_ERROR(name, wbc_status);
                wbcFreeMemory(pwd);
        }