From a620e62286fe317fcad3296a68c25a9b78988442 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 2 Aug 2022 09:51:36 -0700 Subject: [PATCH] cache: unref the package when removing it from the cache --- libpkgconf/cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libpkgconf/cache.c b/libpkgconf/cache.c index 9a7590f..c89b85c 100644 --- a/libpkgconf/cache.c +++ b/libpkgconf/cache.c @@ -168,6 +168,7 @@ pkgconf_cache_remove(pkgconf_client_t *client, pkgconf_pkg_t *pkg) return; pkg->flags &= ~PKGCONF_PKG_PROPF_CACHED; + pkgconf_pkg_unref(client, pkg); *slot = NULL; qsort(client->cache_table, client->cache_count,