diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-02-16 21:31:40 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:40 -0500 |
commit | bc10e4067a0c1985d81e3756c7dd7c23f09c1be0 (patch) | |
tree | 1e357fa7cc1265f66f9f8d02be3fa296641db26a /source3 | |
parent | 96edc93c2373b67ae78adbbde7a68a68daa263e0 (diff) | |
download | samba-bc10e4067a0c1985d81e3756c7dd7c23f09c1be0.tar.gz samba-bc10e4067a0c1985d81e3756c7dd7c23f09c1be0.tar.bz2 samba-bc10e4067a0c1985d81e3756c7dd7c23f09c1be0.zip |
r5421: Fix a memleak
(This used to be commit a7df3b5f06085d55cbf1e491aa606312b87e0448)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/passdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 715eb9ed4c..deac2bbd6e 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -1152,9 +1152,11 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid) DEBUG(4,("local_uid_to_sid: User %s [uid == %lu] has no samba account\n", unix_pw->pw_name, (unsigned long)uid)); - return algorithmic_uid_to_sid( psid, uid); + algorithmic_uid_to_sid( psid, uid); } + pdb_free_sam(&sampw); + DEBUG(10,("local_uid_to_sid: uid (%d) -> SID %s (%s).\n", (unsigned int)uid, sid_string_static(psid), unix_pw->pw_name)); |