queue: unref pkg copy in flatten_dependency_set

Dylan Baker 2022-07-26 13:37:11 -07:00
parent e9e7ebdbb6
commit 94b6d96794
1 changed files with 5 additions and 2 deletions

View File

@ -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);