cache: unref the package when removing it from the cache

Dylan Baker 2022-08-02 09:51:36 -07:00
parent 36acd2e409
commit a620e62286
1 changed files with 1 additions and 0 deletions

View File

@ -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,