queue: fix iteration ordering bug

William Pitcock 2012-07-29 04:04:46 -05:00
parent cf703f8062
commit 67b53487fc
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ pkg_queue_free(pkg_queue_t *head)
{
pkg_queue_t *pkgq, *next_pkgq;
PKG_FOREACH_LIST_ENTRY_SAFE(head, pkgq, next_pkgq)
PKG_FOREACH_LIST_ENTRY_SAFE(head, next_pkgq, pkgq)
{
free(pkgq->package);
free(pkgq);