summaryrefslogtreecommitdiffstats
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 17:43:11 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 19:04:11 +0200
commit13c1c8ef3da5385cb8d0130bdf9c9abe0e43b49f (patch)
tree89d8d313abf4b61e3ed1405328eaa8919dbb1d33 /source3/torture
parentc83ce65ad099270c1edd119bb3d313a4638a0488 (diff)
downloadsamba-13c1c8ef3da5385cb8d0130bdf9c9abe0e43b49f.tar.gz
samba-13c1c8ef3da5385cb8d0130bdf9c9abe0e43b49f.tar.xz
samba-13c1c8ef3da5385cb8d0130bdf9c9abe0e43b49f.zip
s3: Fix a memleak
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 1b6ab9bb8b1..c6c0f62896c 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -1389,6 +1389,8 @@ static bool run_tcon2_test(int dummy)
status = cli_raw_tcon(cli, service, password, "?????", &max_xmit, &cnum);
+ SAFE_FREE(service);
+
if (!NT_STATUS_IS_OK(status)) {
printf("tcon2 failed : %s\n", nt_errstr(status));
} else {