summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-05-06 23:13:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:28 -0500
commit835eaa42cafb14a76195f6eaa2236f255cd56dda (patch)
tree314e2494d71bcf85b1393405ccf08320c2c525aa
parent7b258d284fc3ddff0be98c0bc3a43c652bd4c730 (diff)
downloadsamba-835eaa42cafb14a76195f6eaa2236f255cd56dda.tar.gz
samba-835eaa42cafb14a76195f6eaa2236f255cd56dda.tar.bz2
samba-835eaa42cafb14a76195f6eaa2236f255cd56dda.zip
r538: Mem leak fix from kawasa_r@itg.hitachi.co.jp
Jeremy. (This used to be commit 4cbcd164147d25286fe8dd460c6123e961c4f657)
-rw-r--r--source3/nsswitch/winbindd_user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_user.c b/source3/nsswitch/winbindd_user.c
index 40c398755d..c691705f9c 100644
--- a/source3/nsswitch/winbindd_user.c
+++ b/source3/nsswitch/winbindd_user.c
@@ -94,6 +94,8 @@ static BOOL winbindd_fill_pwent(char *dom_name, char *user_name,
safe_strcpy(pw->pw_shell, shell,
sizeof(pw->pw_shell) - 1);
+ SAFE_FREE(shell);
+
/* Password - set to "x" as we can't generate anything useful here.
Authentication can be done using the pam_winbind module. */