From 5d618874e6c97d9adea540220373ce906914e6a9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 11 Mar 2020 10:16:19 +0100 Subject: free iterator to avoid read locks --- rpminfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rpminfo.c b/rpminfo.c index 1a005cb..018c307 100644 --- a/rpminfo.c +++ b/rpminfo.c @@ -279,6 +279,7 @@ PHP_FUNCTION(rpmdbinfo) add_next_index_zval(return_value, &tmp); } + rpmdbFreeIterator(di); rpmtsCloseDB(ts); } /* }}} */ -- cgit