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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index c6b298eb..09d508a8 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -156,13 +156,9 @@ void db_free_grpcache(pmdb_t *db)
}
for(lg = db->grpcache; lg; lg = lg->next) {
- PMList *lp;
pmgrp_t *grp = lg->data;
- for(lp = grp->packages; lp; lp = lp->next) {
- lp->data = NULL;
- }
- FREELIST(grp->packages);
+ FREELISTPTR(grp->packages);
FREEGRP(lg->data);
}
FREELIST(db->grpcache);