diff options
author | 2022-02-06 14:24:54 +0100 | |
---|---|---|
committer | 2022-02-06 14:24:54 +0100 | |
commit | d0767ea8eab387c65a90445bfd5d8e6e196c30d6 (patch) | |
tree | 0c11dc232e3bb7015c2eb9d126ffb16c15241def /libq | |
parent | .github: enable coverity, we setup the secrets (diff) | |
download | portage-utils-d0767ea8eab387c65a90445bfd5d8e6e196c30d6.tar.gz portage-utils-d0767ea8eab387c65a90445bfd5d8e6e196c30d6.tar.bz2 portage-utils-d0767ea8eab387c65a90445bfd5d8e6e196c30d6.zip |
libq/tree: ensure we free cache.store (for Packages file)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'libq')
-rw-r--r-- | libq/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libq/tree.c b/libq/tree.c index 114541d..db0d2d2 100644 --- a/libq/tree.c +++ b/libq/tree.c @@ -1,5 +1,5 @@ /* - * Copyright 2005-2021 Gentoo Foundation + * Copyright 2005-2022 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * * Copyright 2005-2008 Ned Ludd - <solar@gentoo.org> @@ -194,6 +194,8 @@ tree_close(tree_ctx *ctx) xarrayfree_int(t); } + if (ctx->cache.store != NULL) + free(ctx->cache.store); closedir(ctx->dir); /* closedir() above does this for us: */ |