alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
ed184b
From 475af64f64cbc210c87588d425fa9a14cd9760b6 Mon Sep 17 00:00:00 2001
ed184b
From: Panu Matilainen <pmatilai@redhat.com>
ed184b
Date: Wed, 29 May 2019 11:38:53 +0300
ed184b
Subject: [PATCH] Fix rpmfiles memory leak on %postuntrans file trigger
ed184b
 preparation
ed184b
ed184b
---
ed184b
 lib/rpmtriggers.c | 1 +
ed184b
 1 file changed, 1 insertion(+)
ed184b
ed184b
diff --git a/lib/rpmtriggers.c b/lib/rpmtriggers.c
ed184b
index cb2441c5a..b7c76e7fc 100644
ed184b
--- a/lib/rpmtriggers.c
ed184b
+++ b/lib/rpmtriggers.c
ed184b
@@ -154,6 +154,7 @@ void rpmtriggersPrepPostUnTransFileTrigs(rpmts ts, rpmte te)
ed184b
 	}
ed184b
     }
ed184b
     rpmdbFreeIterator(mi);
ed184b
+    rpmfilesFree(files);
ed184b
 }
ed184b
 
ed184b
 int runPostUnTransFileTrigs(rpmts ts)
ed184b
-- 
ed184b
2.21.0
ed184b