summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-12 16:11:53 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-12 16:11:53 +1100
commit893564bc6412256aab728819aaa65b2b8a608813 (patch)
treea2969ca50a95294ba58a215a3c53c5c1b7e0efc3
parent2b9818ce0fe5ab4b27972b154981cf60ff3acc78 (diff)
downloadsamba-893564bc6412256aab728819aaa65b2b8a608813.tar.gz
samba-893564bc6412256aab728819aaa65b2b8a608813.tar.bz2
samba-893564bc6412256aab728819aaa65b2b8a608813.zip
torture: fixed socket leak in BENCH-TCON test
The BENCH-TCON test was leaving the socket open. A smbclie_tdis() closes the tree connection, but does not close the socket. This caused the build farm to run out of file descriptors
-rw-r--r--source4/torture/raw/tconrate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/raw/tconrate.c b/source4/torture/raw/tconrate.c
index 076e5be31f..06cb7650c1 100644
--- a/source4/torture/raw/tconrate.c
+++ b/source4/torture/raw/tconrate.c
@@ -112,6 +112,7 @@ static int fork_tcon_client(struct torture_context *tctx,
}
smbcli_tdis(cli);
+ talloc_free(cli);
*tcon_count = *tcon_count + 1;
now = timeval_current();