Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
While freeing pkgdb_it drop temporary tables if exists to avoid memory leak
Baptiste Daroussin committed 14 years ago
commit a7ce8b056c75e994d5a917386353fd1145605c40
parent 8d481ab01366ca2810174ec754fa22ed284a8bc2
1 file changed +3 -0
modified libpkg/pkgdb.c
@@ -618,6 +618,9 @@ pkgdb_it_next(struct pkgdb_it *it, struct pkg **pkg_p, int flags)
void
pkgdb_it_free(struct pkgdb_it *it)
{
+

+
	sql_exec(it->db->sqlite, "DROP TABLE IF EXISTS autoremove; ");
+

	if (it != NULL) {
		sqlite3_finalize(it->stmt);
		free(it);