summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-03-08 17:40:54 +0100
committerJeremy Allison <jra@samba.org>2013-04-11 13:57:44 -0700
commitfbda7826b88cf34f445dea73916e2ac958a94cdb (patch)
tree3cfb3bf7a11f37e1d3fb32ee76e4a3c9aeb35dfa
parent8956c0d53bd4e34ec4a93ac5bc1c72ad44e4b004 (diff)
downloadsamba-fbda7826b88cf34f445dea73916e2ac958a94cdb.tar.gz
samba-fbda7826b88cf34f445dea73916e2ac958a94cdb.tar.bz2
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>
-rw-r--r--source3/libsmb/cliconnect.c4
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);
}
/****************************************************************************