aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libq/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libq/tree.c b/libq/tree.c
index 114541dc..db0d2d22 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: */