forked from ariadne/pkgconf
queue: fix iteration ordering bug
parent
f4f1c1defe
commit
cdac22fc5c
2
queue.c
2
queue.c
|
@ -53,7 +53,7 @@ pkg_queue_free(pkg_queue_t *head)
|
||||||
{
|
{
|
||||||
pkg_queue_t *pkgq, *next_pkgq;
|
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->package);
|
||||||
free(pkgq);
|
free(pkgq);
|
||||||
|
|
Loading…
Reference in New Issue