alexk / rpms / rpm

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