1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s3:winbind: Fix Coverity ID 942: Resource Leak

This commit is contained in:
Volker Lendecke 2009-08-26 18:20:06 +02:00
parent f2fa9e6246
commit d49ab9226f

View File

@ -2306,6 +2306,7 @@ NTSTATUS wcache_lookup_groupmem(struct winbindd_domain *domain,
*num_names = centry_uint32(centry);
if (*num_names == 0) {
centry_free(centry);
return NT_STATUS_OK;
}
@ -2317,6 +2318,7 @@ NTSTATUS wcache_lookup_groupmem(struct winbindd_domain *domain,
TALLOC_FREE(*sid_mem);
TALLOC_FREE(*names);
TALLOC_FREE(*name_types);
centry_free(centry);
return NT_STATUS_NO_MEMORY;
}