diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-05-08 11:58:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-09-15 13:56:20 -0400 |
commit | b6b7a68190703d30912d2a1c3d8d64e3de81a612 (patch) | |
tree | d99e0b9dd0060deed2980b43a99fd2f359f9ad30 /ctx.c | |
parent | b2d85ea84c930ebcfefc6449414ed64cd80e2f89 (diff) | |
download | bfs-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); } |