svn commit: samba r22024 - in branches/SAMBA_3_0/source/lib: .

abartlet at samba.org abartlet at samba.org
Mon Apr 2 06:57:37 GMT 2007


Author: abartlet
Date: 2007-04-02 06:57:37 +0000 (Mon, 02 Apr 2007)
New Revision: 22024

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22024

Log:
Don't leak, actually use the provided memory context...

Modified:
   branches/SAMBA_3_0/source/lib/util_pw.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/util_pw.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util_pw.c	2007-04-02 06:26:16 UTC (rev 22023)
+++ branches/SAMBA_3_0/source/lib/util_pw.c	2007-04-02 06:57:37 UTC (rev 22024)
@@ -106,7 +106,7 @@
 
 	pwnam_cache[i] = tcopy_passwd(pwnam_cache, temp);
 
-	return tcopy_passwd(pwnam_cache, temp);
+	return tcopy_passwd(mem_ctx, temp);
 }
 
 struct passwd *getpwuid_alloc(TALLOC_CTX *mem_ctx, uid_t uid) 



More information about the samba-cvs mailing list