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

