torture: Don't leak file resource handle in spoolss test.
authorAndreas Schneider <asn@samba.org>
Wed, 20 Feb 2013 08:26:02 +0000 (09:26 +0100)
committerAlexander 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

index 7d9ae9946592ccc1f86835f3b83c6d4177e7fccc..b3180039eb0696a049d1ef3177de20180962e892 100644 (file)
@@ -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;
        }