git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b9818c
)
torture: fixed socket leak in BENCH-TCON test
author
Andrew Tridgell
<tridge@samba.org>
Mon, 12 Oct 2009 05:11:53 +0000
(16:11 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 12 Oct 2009 05:11:53 +0000
(16:11 +1100)
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
patch
|
blob
|
history
diff --git
a/source4/torture/raw/tconrate.c
b/source4/torture/raw/tconrate.c
index 076e5be31ff4150c6cfe93af508afbe8c1ae6ba2..06cb7650c154711e44b138bb8f949a0fff31a164 100644
(file)
--- 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();