33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 3799b5e004e6bac4b2ececde2553f043796fc109 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 mearged
|
|
Reference:https://github.com/rpm-software-management/rpm/commit/26a1323022e3153d99b2f1095fe040f52fb2e3f3
|
|
|
|
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 6a13afd..5e673b7 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.23.0
|
|
|