From b6b7a68190703d30912d2a1c3d8d64e3de81a612 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 8 May 2021 11:58:09 -0400 Subject: Implement -files0-from FILE See https://savannah.gnu.org/bugs/?60383 for the development of the corresponding GNU find feature. --- ctx.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ctx.c') 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); } -- cgit v1.2.3