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:
parent
27d3bdd36b
commit
1038a134ed
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user