From 4cbcd164147d25286fe8dd460c6123e961c4f657 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 May 2004 23:13:44 +0000 Subject: [PATCH] r538: Mem leak fix from kawasa_r@itg.hitachi.co.jp Jeremy. --- source/nsswitch/winbindd_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/nsswitch/winbindd_user.c b/source/nsswitch/winbindd_user.c index 40c398755d1..c691705f9c0 100644 --- a/source/nsswitch/winbindd_user.c +++ b/source/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. */ -- 2.34.1