Author: vlendec Date: 2005-05-13 09:21:21 +0000 (Fri, 13 May 2005) New Revision: 6774
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6774 Log: Fix 2 memleaks Modified: branches/SAMBA_3_0/source/passdb/passdb.c Changeset: Modified: branches/SAMBA_3_0/source/passdb/passdb.c =================================================================== --- branches/SAMBA_3_0/source/passdb/passdb.c 2005-05-13 09:18:58 UTC (rev 6773) +++ branches/SAMBA_3_0/source/passdb/passdb.c 2005-05-13 09:21:21 UTC (rev 6774) @@ -1194,6 +1194,7 @@ become_root(); if ( !pdb_getsampwsid(sampw, psid) ) { unbecome_root(); + pdb_free_sam(&sampw); DEBUG(8,("local_sid_to_uid: Could not find SID %s in passdb\n", sid_string_static(psid))); return False; @@ -1217,7 +1218,7 @@ (unsigned int)*puid, user_name )); *name_type = SID_NAME_USER; - + pdb_free_sam( &sampw ); return True; }