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) 

Reply via email to