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

pull/164/head
William Pitcock 2017-12-08 13:39:40 -06:00
parent 4058a722a4
commit d2b6983385
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ pkgconf_cache_free(pkgconf_client_t *client)
PKGCONF_FOREACH_LIST_ENTRY_SAFE(client->pkg_cache.head, iter2, iter) PKGCONF_FOREACH_LIST_ENTRY_SAFE(client->pkg_cache.head, iter2, iter)
{ {
pkgconf_pkg_t *pkg = iter->data; 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); memset(&client->pkg_cache, 0, sizeof client->pkg_cache);