加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fix-spec-parser-leaks-from-trans-f-file.patch 1023 Bytes
一键复制 编辑 原始数据 按行查看 历史
hugel 提交于 2024-03-14 09:41 . backport some patches from upstream
From 26a1323022e3153d99b2f1095fe040f52fb2e3f3 Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Tue, 30 Jan 2024 14:55:54 +0200
Subject: [PATCH] Fix spec parser leaks from %*trans -f <file>
Conflict:don't free preunTransFile and postunTransFile because
db46bd8bd1 is not merged
The untrans-versions leak because grepping around didn't turn up
the trans-counterparts ... because they didn't exist either.
Those leaks are adults by now.
---
build/spec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/build/spec.c b/build/spec.c
index 824afba27..6f8a6a155 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -143,6 +143,8 @@ Package freePackage(Package pkg)
pkg->preUnFile = _free(pkg->preUnFile);
pkg->postUnFile = _free(pkg->postUnFile);
pkg->verifyFile = _free(pkg->verifyFile);
+ pkg->preTransFile = _free(pkg->preTransFile);
+ pkg->postTransFile = _free(pkg->postTransFile);
pkg->header = headerFree(pkg->header);
pkg->ds = rpmdsFree(pkg->ds);
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化