From d85d85b851f498330badc3eb47a7f10a6981376b Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 29 May 2010 09:48:20 -0400 Subject: 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. --- source3/passdb/pdb_get_set.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c index 96f6b40b2d..57d95138e3 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 ) { -- cgit