diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-21 22:00:38 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-21 22:00:38 +0000 |
commit | 32831d5af9e0dff5a36cd59e5cf0f64c464ed93d (patch) | |
tree | 2dcca344f2dbc7126c527b9434c9736e3c9a4e13 /source4/torture | |
parent | 0739d3dafdbc43f4c8f8adc2d2a216b7486971f1 (diff) | |
download | samba-32831d5af9e0dff5a36cd59e5cf0f64c464ed93d.tar.gz samba-32831d5af9e0dff5a36cd59e5cf0f64c464ed93d.tar.bz2 samba-32831d5af9e0dff5a36cd59e5cf0f64c464ed93d.zip |
fix a smbtorture memory leak
(This used to be commit 0eff7c519b87d9c69da61a7dfeecd0483f1ad7e9)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/torture.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 105abcf9eb..aa4af4b397 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -26,7 +26,6 @@ int torture_entries=1000; int torture_failures=1; static int procnum; /* records process count number when forking */ static struct cli_state *current_cli; -static char *randomfname; static BOOL use_oplocks; static BOOL use_level_II_oplocks; static const char *client_txt = "client_oplocks.txt"; @@ -328,7 +327,7 @@ static BOOL run_torture(int dummy) return ret; } -static BOOL rw_torture3(struct cli_state *c, char *lockfname) +static BOOL rw_torture3(struct cli_state *c, const char *lockfname) { int fnum = -1; unsigned int i = 0; @@ -546,8 +545,7 @@ static BOOL run_readwritemulti(int dummy) cli = current_cli; - printf("run_readwritemulti: fname %s\n", randomfname); - test = rw_torture3(cli, randomfname); + test = rw_torture3(cli, "\\multitest.txt"); if (!torture_close_connection(cli)) { test = False; @@ -4021,9 +4019,6 @@ static BOOL run_test(const char *name) } for (i=0;torture_ops[i].name;i++) { - asprintf(&randomfname, "\\XX%x", - (unsigned)random()); - if (gen_fnmatch(name, torture_ops[i].name) == 0) { double t; matched = True; |