git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a92b3d0
)
r8497: prevent a fd leak in RAW-SEARCH test
author
Andrew Tridgell
<tridge@samba.org>
Fri, 15 Jul 2005 12:58:09 +0000
(12:58 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:23:09 +0000
(13:23 -0500)
(This used to be commit
efb151ba797a5473316ca2dc9ec7f40fead9dab2
)
source4/torture/raw/search.c
patch
|
blob
|
history
diff --git
a/source4/torture/raw/search.c
b/source4/torture/raw/search.c
index c3cb76d552058811aece13ecefca16b0a7874063..1798d70b3e8a309e60553bcd45df76fa3b1b5329 100644
(file)
--- 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);