The branch, master has been updated
       via  d85d85b... s3:passdb Fix memory leak
      from  b455c5e... s3:auth Fix segfault when the user cannot be found by 
getpwnam()

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


- Log -----------------------------------------------------------------
commit d85d85b851f498330badc3eb47a7f10a6981376b
Author: Simo Sorce <[email protected]>
Date:   Sat May 29 09:48:20 2010 -0400

    s3:passdb Fix memory leak
    
    We were allocating this passwd structure on sampass, but never freeing
    it nor assigning it to unix_pw where it could be reused.

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

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


Changeset truncated at 500 lines:

diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c
index 96f6b40..57d9513 100644
--- a/source3/passdb/pdb_get_set.c
+++ b/source3/passdb/pdb_get_set.c
@@ -206,6 +206,7 @@ const struct dom_sid *pdb_get_group_sid(struct samu 
*sampass)
                pwd = sampass->unix_pw;
        } else {
                pwd = Get_Pwnam_alloc( sampass, pdb_get_username(sampass) );
+               sampass->unix_pw = pwd;
        }
 
        if ( !pwd ) {


-- 
Samba Shared Repository

Reply via email to