diff options
author | Jeremy Allison <jra@samba.org> | 2004-05-06 23:13:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-05-06 23:13:44 +0000 |
commit | cd127c097d2ce1c749c3c66c4f04e9bb318801a8 (patch) | |
tree | 24dbf65562f8db427e397ecf3d4247a6de0d19ff | |
parent | 90a0ed970d5c1d0b938d47425b51fb82d05b5b12 (diff) | |
download | samba-cd127c097d2ce1c749c3c66c4f04e9bb318801a8.tar.gz samba-cd127c097d2ce1c749c3c66c4f04e9bb318801a8.tar.xz samba-cd127c097d2ce1c749c3c66c4f04e9bb318801a8.zip |
r538: Mem leak fix from kawasa_r@itg.hitachi.co.jp
Jeremy.
-rw-r--r-- | source/nsswitch/winbindd_user.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. */ |