diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-05-29 09:48:20 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2010-05-29 10:54:08 -0400 |
commit | d85d85b851f498330badc3eb47a7f10a6981376b (patch) | |
tree | 4ae041e3d178b318bde245d7142c587d5710896a | |
parent | b455c5e155f7e7ba4cc07cd4415a304163213e0f (diff) | |
download | samba-d85d85b851f498330badc3eb47a7f10a6981376b.tar.gz samba-d85d85b851f498330badc3eb47a7f10a6981376b.tar.bz2 samba-d85d85b851f498330badc3eb47a7f10a6981376b.zip |
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.
-rw-r--r-- | source3/passdb/pdb_get_set.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 ) { |