forked from ariadne/pkgconf
queue: unref pkg copy in flatten_dependency_set
parent
e9e7ebdbb6
commit
94b6d96794
|
@ -160,7 +160,9 @@ flatten_dependency_set(pkgconf_client_t *client, pkgconf_list_t *list)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (pkg->serial == client->serial)
|
if (pkg->serial == client->serial)
|
||||||
continue;
|
{
|
||||||
|
goto next;
|
||||||
|
}
|
||||||
|
|
||||||
if (dep->match == NULL)
|
if (dep->match == NULL)
|
||||||
{
|
{
|
||||||
|
@ -191,7 +193,8 @@ flatten_dependency_set(pkgconf_client_t *client, pkgconf_list_t *list)
|
||||||
|
|
||||||
PKGCONF_TRACE(client, "added %s to dep table", dep->package);
|
PKGCONF_TRACE(client, "added %s to dep table", dep->package);
|
||||||
|
|
||||||
next:;
|
next:
|
||||||
|
pkgconf_pkg_unref(client, pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
qsort(deps, dep_count, sizeof (void *), dep_sort_cmp);
|
qsort(deps, dep_count, sizeof (void *), dep_sort_cmp);
|
||||||
|
|
Loading…
Reference in New Issue