git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aab2e17
)
torture: Don't leak file resource handle in spoolss test.
author
Andreas Schneider
<asn@samba.org>
Wed, 20 Feb 2013 08:26:02 +0000
(09:26 +0100)
committer
Alexander Bokovoy
<ab@samba.org>
Fri, 22 Feb 2013 15:36:13 +0000
(16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/torture/rpc/spoolss.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/spoolss.c
b/source4/torture/rpc/spoolss.c
index 7d9ae9946592ccc1f86835f3b83c6d4177e7fccc..b3180039eb0696a049d1ef3177de20180962e892 100644
(file)
--- 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) {
buf = talloc_array(tctx, uint8_t, maxwrite);
if (!buf) {
+ x_fclose(f);
return false;
}
return false;
}