summaryrefslogtreecommitdiffstats
path: root/ctx.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-05-08 11:58:09 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-09-15 13:56:20 -0400
commitb6b7a68190703d30912d2a1c3d8d64e3de81a612 (patch)
treed99e0b9dd0060deed2980b43a99fd2f359f9ad30 /ctx.c
parentb2d85ea84c930ebcfefc6449414ed64cd80e2f89 (diff)
downloadbfs-b6b7a68190703d30912d2a1c3d8d64e3de81a612.tar.xz
Implement -files0-from FILE
See https://savannah.gnu.org/bugs/?60383 for the development of the corresponding GNU find feature.
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);
}