From 34c0a1559fcc5121c24c5bfd013f091e69eddb39 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 20 Jan 2023 21:03:21 +0000 Subject: [PATCH] libpkgconf: cache: free copied cache_table when clearing cache --- libpkgconf/cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpkgconf/cache.c b/libpkgconf/cache.c index fee0f28..e1fa86b 100644 --- a/libpkgconf/cache.c +++ b/libpkgconf/cache.c @@ -227,5 +227,7 @@ pkgconf_cache_free(pkgconf_client_t *client) client->cache_table = NULL; client->cache_count = 0; + free(cache_table); + PKGCONF_TRACE(client, "cleared package cache"); }