diff options
author | xujing <xujing125@huawei.com> | 2022-11-28 11:02:47 +0800 |
---|---|---|
committer | Michal Domonkos <mdomonko@redhat.com> | 2023-03-13 15:32:25 +0100 |
commit | 0557b0f9a564c2af227f6cb7c357e46db5b73821 (patch) | |
tree | f9185f4e4036e703b75ae246bfa59f194d9e26cd | |
parent | 5542a1ede3bcb2c1bdadf121da5adc9f9ef1245c (diff) | |
download | rpm-0557b0f9a564c2af227f6cb7c357e46db5b73821.tar.gz |
Fix memleak when running %generate_buildrequires
The "output[i]" is alloced in argvSplit but not freed when running
%generate_buildrequires. Fix it.
(cherry picked from commit 3b0b9d491f5828a40c15b76b4a19ca00006cf81e)
-rw-r--r-- | build/build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/build.c b/build/build.c index 5ec10ed00..632ef66dc 100644 --- a/build/build.c +++ b/build/build.c @@ -276,7 +276,7 @@ static int doBuildRequires(rpmSpec spec, int test) exit: freeStringBuf(sb_stdout); - free(output); + argvFree(output); return rc; } |