summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-20 09:26:02 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:13 +0100
commit6ac1435ab3389d36497ece61a2461d9ccc7b4560 (patch)
treeaa260145243dc049b170a8adb19b658ca3ff82dd /source4/torture/rpc
parentaab2e176dc8f67424cf8b4475a8bd38c79ad999a (diff)
downloadsamba-6ac1435ab3389d36497ece61a2461d9ccc7b4560.tar.gz
samba-6ac1435ab3389d36497ece61a2461d9ccc7b4560.tar.bz2
samba-6ac1435ab3389d36497ece61a2461d9ccc7b4560.zip
torture: Don't leak file resource handle in spoolss test.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 7d9ae99465..b3180039eb 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -9016,6 +9016,7 @@ static bool upload_printer_driver_file(struct torture_context *tctx,
buf = talloc_array(tctx, uint8_t, maxwrite);
if (!buf) {
+ x_fclose(f);
return false;
}