richardphibel / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
83a7c7
From 788935c9ea9d2f469f24be10a9fa998594046731 Mon Sep 17 00:00:00 2001
83a7c7
From: Panu Matilainen <pmatilai@redhat.com>
83a7c7
Date: Fri, 7 Sep 2018 11:52:33 +0300
83a7c7
Subject: [PATCH] Fix a blindingly obvious memleak in package verify step
83a7c7
83a7c7
Erm. Introduced in commit 765e2c72ae8be369ada41d4747b8999519a0e327,
83a7c7
but how on earth did this go unnoticed... *blush*
83a7c7
---
83a7c7
 lib/transaction.c | 1 +
83a7c7
 1 file changed, 1 insertion(+)
83a7c7
83a7c7
diff --git a/lib/transaction.c b/lib/transaction.c
83a7c7
index 205c3f388..3969ad3fc 100644
83a7c7
--- a/lib/transaction.c
83a7c7
+++ b/lib/transaction.c
83a7c7
@@ -1261,6 +1261,7 @@ static int verifyPackageFiles(rpmts ts, rpm_loff_t total)
83a7c7
 	    rpmteAddProblem(p, RPMPROB_VERIFY, NULL, vd.msg, 0);
83a7c7
 
83a7c7
 	vd.msg = _free(vd.msg);
83a7c7
+	rpmvsFree(vs);
83a7c7
     }
83a7c7
     rpmtsNotify(ts, NULL, RPMCALLBACK_VERIFY_STOP, total, total);
83a7c7
 
83a7c7
-- 
83a7c7
2.21.0
83a7c7