forked from ariadne/pkgconf
queue: unref dependency in all cases
parent
e275594ba6
commit
6609001114
|
@ -160,7 +160,7 @@ flatten_dependency_set(pkgconf_client_t *client, pkgconf_list_t *list)
|
|||
continue;
|
||||
|
||||
if (pkg->serial == client->serial)
|
||||
continue;
|
||||
goto next;
|
||||
|
||||
if (dep->match == NULL)
|
||||
{
|
||||
|
@ -190,8 +190,8 @@ flatten_dependency_set(pkgconf_client_t *client, pkgconf_list_t *list)
|
|||
deps[dep_count - 1] = dep;
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue