summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r--lib/libalpm/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index 01abb96c..10021634 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -87,6 +87,7 @@ void _alpm_db_free_pkgcache(pmdb_t *db)
for(tmp = db->pkgcache; tmp; tmp = alpm_list_next(tmp)) {
_alpm_pkg_free(tmp->data);
}
+ alpm_list_free(db->pkgcache);
db->pkgcache = NULL;
if(db->grpcache) {