queue: fix iteration ordering bug

feature/tap-sh
William Pitcock 2012-07-29 04:04:46 -05:00
parent f4f1c1defe
commit cdac22fc5c
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);