Projects
Factory:RISC-V:Base
rpm
_service:tar_scm:backport-Fix-Header-leak-when-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-Fix-Header-leak-when-running-rpm2cpio.patch of Package rpm
From cf27c6f4963dcf27302d0f4fa39d7787dd03f942 Mon Sep 17 00:00:00 2001 From: xujing <xujing125@huawei.com> Date: Fri, 25 Nov 2022 17:18:33 +0800 Subject: [PATCH] Fix Header leak when running rpm2cpio Header "h" is alloced in rpmReadPackageFile but not freed when running rpm2cpio. Fix it. Remove redundant whitespace between the Fclose()'s too while at it for logical cleanup grouping. --- rpm2cpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm2cpio.c b/rpm2cpio.c index fcc3b3079..940d6ce38 100644 --- a/rpm2cpio.c +++ b/rpm2cpio.c @@ -96,8 +96,8 @@ int main(int argc, char *argv[]) */ rc = (ufdCopy(gzdi, fdo) >= payload_size) ? EXIT_SUCCESS : EXIT_FAILURE; + headerFree(h); Fclose(fdo); - Fclose(gzdi); /* XXX gzdi == fdi */ return rc; -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2