summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-03-11 10:16:19 +0100
committerRemi Collet <remi@remirepo.net>2020-03-11 10:16:19 +0100
commit5d618874e6c97d9adea540220373ce906914e6a9 (patch)
tree1bf0cad645251398862f7d19811e87c4bac063cb
parent9bae085b0ed5779eb1daeca8f8eb4e77a32aeab6 (diff)
free iterator to avoid read locks
-rw-r--r--rpminfo.c1
1 files changed, 1 insertions, 0 deletions
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);
}
/* }}} */