mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3: Fix a memleak reported by dmarkey
This commit is contained in:
parent
99cdbe3571
commit
5aeb954ba9
@ -248,9 +248,13 @@ wbcErr wbcLookupSid(const struct wbcDomainSid *sid,
|
||||
if (WBC_ERROR_IS_OK(wbc_status)) {
|
||||
if (pdomain != NULL) {
|
||||
*pdomain = domain;
|
||||
} else {
|
||||
TALLOC_FREE(domain);
|
||||
}
|
||||
if (pname != NULL) {
|
||||
*pname = name;
|
||||
} else {
|
||||
TALLOC_FREE(name);
|
||||
}
|
||||
if (pname_type != NULL) {
|
||||
*pname_type = name_type;
|
||||
|
Loading…
x
Reference in New Issue
Block a user