diff options
author | Volker Lendecke <vl@samba.org> | 2013-03-08 17:40:54 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-11 13:57:44 -0700 |
commit | fbda7826b88cf34f445dea73916e2ac958a94cdb (patch) | |
tree | 3cfb3bf7a11f37e1d3fb32ee76e4a3c9aeb35dfa /source3/libsmb | |
parent | 8956c0d53bd4e34ec4a93ac5bc1c72ad44e4b004 (diff) | |
download | samba-fbda7826b88cf34f445dea73916e2ac958a94cdb.tar.gz samba-fbda7826b88cf34f445dea73916e2ac958a94cdb.tar.xz samba-fbda7826b88cf34f445dea73916e2ac958a94cdb.zip |
libsmbclient: Fix a leak on talloc_tos()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index ec5c273cf3..d0e67db1b5 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2015,7 +2015,9 @@ ntlmssp: account[PTR_DIFF(p,user)] = '\0'; } - return ADS_ERROR_NT(cli_session_setup_ntlmssp(cli, account, pass, user_domain)); + status = cli_session_setup_ntlmssp(cli, account, pass, user_domain); + TALLOC_FREE(account); + return ADS_ERROR_NT(status); } /**************************************************************************** |