libpkgconf: cache: fix refcount issue exposed by recent depgraph solver changes

William Pitcock 2017-12-08 13:39:40 -06:00
parent d1acbb3489
commit 6fc59ccc8d
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ pkgconf_cache_free(pkgconf_client_t *client)
PKGCONF_FOREACH_LIST_ENTRY_SAFE(client->pkg_cache.head, iter2, iter)
{
pkgconf_pkg_t *pkg = iter->data;
pkgconf_pkg_free(client, pkg);
pkgconf_pkg_unref(client, pkg);
}
memset(&client->pkg_cache, 0, sizeof client->pkg_cache);