From b5493f8ced67e04ee173aed6eb2b40e1e5ef2291 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 12 Oct 2009 16:11:53 +1100 Subject: [PATCH] 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 (cherry picked from commit f1529c3223a4b366cd4795c559eaaa8c40078470) --- source4/torture/raw/tconrate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/torture/raw/tconrate.c b/source4/torture/raw/tconrate.c index 076e5be31ff..06cb7650c15 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(); -- 2.11.4.GIT