Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
pacemaker
clbz#5489-0001-Low-libcrmcommon-avoid-file-reso...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File clbz#5489-0001-Low-libcrmcommon-avoid-file-resource-leak-on-decompr.patch of Package pacemaker
From 8e733a35bc7b8491f16c5a185df6d245c42a8da9 Mon Sep 17 00:00:00 2001 From: Ken Gaillot <kgaillot@redhat.com> Date: Tue, 4 Jan 2022 09:32:50 -0600 Subject: [PATCH] Low: libcrmcommon: avoid file resource leak on decompression errors Fix suggested by Ryan Cai <ycaibb@gmail.com> (fixes CLBZ#5489) --- lib/common/xml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common/xml.c b/lib/common/xml.c index 513670bfd..a0b896524 100644 --- a/lib/common/xml.c +++ b/lib/common/xml.c @@ -1,5 +1,5 @@ /* - * Copyright 2004-2021 the Pacemaker project contributors + * Copyright 2004-2022 the Pacemaker project contributors * * The version control history for this file may have further details. * @@ -975,6 +975,7 @@ decompress_file(const char *filename) crm_err("Could not prepare to read compressed %s: %s " CRM_XS " bzerror=%d", filename, bz2_strerror(rc), rc); BZ2_bzReadClose(&rc, bz_file); + fclose(input); return NULL; } -- 2.34.1
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