summaryrefslogtreecommitdiffstats
path: root/ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctx.c')
-rw-r--r--ctx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctx.c b/ctx.c
index 5c9c9bf..0b7296c 100644
--- a/ctx.c
+++ b/ctx.c
@@ -256,7 +256,12 @@ int bfs_ctx_free(struct bfs_ctx *ctx) {
cfclose(cerr);
free_colors(ctx->colors);
+
+ for (size_t i = 0; i < darray_length(ctx->paths); ++i) {
+ free((char *)ctx->paths[i]);
+ }
darray_free(ctx->paths);
+
free(ctx->argv);
free(ctx);
}