summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-15 12:58:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:23:09 -0500
commita2a838d72ca8fe61eda1b8091fe8c126e2b1931e (patch)
treec7658b07c5da39e502954139be4d2a8137812400
parenta92b3d070fa3a11276ea1b755fe364e5f8988cb9 (diff)
downloadsamba-a2a838d72ca8fe61eda1b8091fe8c126e2b1931e.tar.gz
samba-a2a838d72ca8fe61eda1b8091fe8c126e2b1931e.tar.bz2
samba-a2a838d72ca8fe61eda1b8091fe8c126e2b1931e.zip
r8497: prevent a fd leak in RAW-SEARCH test
(This used to be commit efb151ba797a5473316ca2dc9ec7f40fead9dab2)
-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);