summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-04-03 09:35:10 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-04-03 09:35:10 -0400
commit8fd962f6faecac925dcc23f87635d4915475acf3 (patch)
tree55094d539b70a4ba6dfccc29704fb913b480d060
parent37b4f3c9450d61fadc888f83e2f547b2beb15980 (diff)
downloadbfs-8fd962f6faecac925dcc23f87635d4915475acf3.tar.xz
ctx: Don't leak ctx->kindsHEADmain
Fixes: 9c911d7 ("ctx: Track the token kind of each argument")
-rw-r--r--src/ctx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ctx.c b/src/ctx.c
index d92d8ba..05baa1d 100644
--- a/src/ctx.c
+++ b/src/ctx.c
@@ -286,6 +286,7 @@ int bfs_ctx_free(struct bfs_ctx *ctx) {
}
free(ctx->paths);
+ free(ctx->kinds);
free(ctx->argv);
free(ctx);
}