The branch, master has been updated
       via  d49ab9226f849d1f08f7cf83956d35cf4950906e (commit)
      from  f2fa9e62466fa8a6cc6a53172da6c8b24d51874d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d49ab9226f849d1f08f7cf83956d35cf4950906e
Author: Volker Lendecke <[email protected]>
Date:   Wed Aug 26 18:20:06 2009 +0200

    s3:winbind: Fix Coverity ID 942: Resource Leak

-----------------------------------------------------------------------

Summary of changes:
 source3/winbindd/winbindd_cache.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_cache.c 
b/source3/winbindd/winbindd_cache.c
index a46aa0a..c947254 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -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;
        }
 


-- 
Samba Shared Repository

Reply via email to