index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/cache.c | 6 |
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); |