Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
grub2.5759
0005-grub-fstest-fix-descriptor-leak.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-grub-fstest-fix-descriptor-leak.patch of Package grub2.5759
From 151c19a42a8ea76395fdb579221198156da9c026 Mon Sep 17 00:00:00 2001 From: Andrei Borzenkov <arvidjaar@gmail.com> Date: Fri, 30 Jan 2015 22:45:58 +0300 Subject: [PATCH] grub-fstest: fix descriptor leak Found by: Coverity scan. --- util/grub-fstest.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Index: grub-2.02~beta2/util/grub-fstest.c =================================================================== --- grub-2.02~beta2.orig/util/grub-fstest.c 2013-12-25 00:40:31.000000000 +0800 +++ grub-2.02~beta2/util/grub-fstest.c 2015-09-22 17:16:23.177530851 +0800 @@ -570,12 +570,12 @@ return 0; } real_size = fread (buf, 1, 1024, f); + fclose (f); if (real_size < 0) { printf (_("%s: error:"), program_name); printf (_("cannot read `%s': %s"), arg, strerror (errno)); printf ("\n"); - fclose (f); return 0; } grub_zfs_add_key (buf, real_size, 0);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor