1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

libwbclient: Fix a memleak in wbcGetDisplayName

This commit is contained in:
Volker Lendecke 2010-04-10 16:34:53 +02:00
parent 27d3bdd36b
commit 1038a134ed

View File

@ -782,6 +782,7 @@ wbcErr wbcGetDisplayName(const struct wbcDomainSid *sid,
name = talloc_strdup(NULL, pwd->pw_gecos);
BAIL_ON_PTR_ERROR(name, wbc_status);
wbcFreeMemory(pwd);
}
wbc_status = WBC_ERR_SUCCESS;