From 835eaa42cafb14a76195f6eaa2236f255cd56dda Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 May 2004 23:13:44 +0000 Subject: r538: Mem leak fix from kawasa_r@itg.hitachi.co.jp Jeremy. (This used to be commit 4cbcd164147d25286fe8dd460c6123e961c4f657) --- source3/nsswitch/winbindd_user.c | 2 ++ 1 file changed, 2 insertions(+) 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. */ -- cgit