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