diff options
author | Andreas Schneider <asn@samba.org> | 2013-02-20 09:26:02 +0100 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2013-02-22 16:36:13 +0100 |
commit | 6ac1435ab3389d36497ece61a2461d9ccc7b4560 (patch) | |
tree | aa260145243dc049b170a8adb19b658ca3ff82dd /source4/torture | |
parent | aab2e176dc8f67424cf8b4475a8bd38c79ad999a (diff) | |
download | samba-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')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 1 |
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; } |