1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

lib: Fix CID 1107218 Resource leak

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Volker Lendecke 2015-03-31 21:24:45 +02:00 committed by Michael Adam
parent 6bcc037b5b
commit 86f04bfc24

View File

@ -368,11 +368,8 @@ static void popt_common_credentials_callback(poptContext con,
}
if (getenv("USER")) {
char *puser = SMB_STRDUP(getenv("USER"));
if (!puser) {
exit(ENOMEM);
}
set_cmdline_auth_info_username(auth_info, puser);
set_cmdline_auth_info_username(auth_info,
getenv("USER"));
}
if (getenv("PASSWD")) {