summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c
index c3cb76d552..1798d70b3e 100644
--- a/source4/torture/raw/search.c
+++ b/source4/torture/raw/search.c
@@ -958,10 +958,10 @@ static BOOL test_many_dirs(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
goto done;
}
free(fname);
+ smbcli_close(cli->tree, fnum);
}
free(dname);
- smbcli_close(cli->tree, fnum);
}
file = talloc_zero_array(mem_ctx, union smb_search_data, num_dirs);