Projects
Factory:RISC-V:Base
rpm
_service:tar_scm:backport-Fix-memleak-when-runn...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-Fix-memleak-when-running-generate_buildrequires.patch of Package rpm
From 3b0b9d491f5828a40c15b76b4a19ca00006cf81e Mon Sep 17 00:00:00 2001 From: xujing <xujing125@huawei.com> Date: Mon, 28 Nov 2022 11:02:47 +0800 Subject: [PATCH 5/5] Fix memleak when running %generate_buildrequires The "output[i]" is alloced in argvSplit but not freed when running %generate_buildrequires. Fix it. --- build/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.c b/build/build.c index 4437f6c9c..34e01d5be 100644 --- a/build/build.c +++ b/build/build.c @@ -279,7 +279,7 @@ static int doBuildRequires(rpmSpec spec, int test) exit: freeStringBuf(sb_stdout); - free(output); + argvFree(output); return rc; } -- 2.27.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