From 429162ba11e58758e5e4ac4f03239891fc3e189c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 12 Dec 2017 16:04:02 +0300 Subject: Merge with latest upstream package version (master branch) --- libpkgconf/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpkgconf/cache.c') diff --git a/libpkgconf/cache.c b/libpkgconf/cache.c index 1662ce5..7715e33 100644 --- a/libpkgconf/cache.c +++ b/libpkgconf/cache.c @@ -44,7 +44,7 @@ * :rtype: pkgconf_pkg_t * */ pkgconf_pkg_t * -pkgconf_cache_lookup(const pkgconf_client_t *client, const char *id) +pkgconf_cache_lookup(pkgconf_client_t *client, const char *id) { pkgconf_node_t *node; @@ -134,7 +134,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); -- cgit v1.1