summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-04-02 06:57:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:03 -0500
commitfd2e5b90a42c86736416adf1d5e06315605476ff (patch)
tree0ae06fe526d1954b357021324fec656c2ea290af
parentddf759c533f8869c319c726ee1773f969c54a487 (diff)
downloadsamba-fd2e5b90a42c86736416adf1d5e06315605476ff.tar.gz
samba-fd2e5b90a42c86736416adf1d5e06315605476ff.tar.bz2
samba-fd2e5b90a42c86736416adf1d5e06315605476ff.zip
r22024: Don't leak, actually use the provided memory context...
(This used to be commit 46ff4e599e79f47254e05c7e4db75db9a19934bc)
-rw-r--r--source3/lib/util_pw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_pw.c b/source3/lib/util_pw.c
index fcbdd941fe..d6dfbd5016 100644
--- a/source3/lib/util_pw.c
+++ b/source3/lib/util_pw.c
@@ -106,7 +106,7 @@ struct passwd *getpwnam_alloc(TALLOC_CTX *mem_ctx, const char *name)
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)