From 893564bc6412256aab728819aaa65b2b8a608813 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 12 Oct 2009 16:11:53 +1100 Subject: 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 --- source4/torture/raw/tconrate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/torture/raw') 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(); -- cgit