1
0
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:
Volker Lendecke 2009-10-09 22:58:14 +02:00
parent 99cdbe3571
commit 5aeb954ba9

View File

@ -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;