diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-02-07 23:23:54 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-02-07 23:47:43 -0500 |
commit | 360bb95f1d0296efd8c784b13b05daf289336684 (patch) | |
tree | 2555ec5caaeb2829d6ade4b7b4cb87cab36f1e9d /bftw.c | |
parent | 7348cdc86c3b507cb2f0935148ec07c846652834 (diff) | |
download | bfs-360bb95f1d0296efd8c784b13b05daf289336684.tar.xz |
bftw: Add mising closedir() to error path
Diffstat (limited to 'bftw.c')
-rw-r--r-- | bftw.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1040,6 +1040,7 @@ int bftw(const char *path, bftw_fn *fn, int nopenfd, enum bftw_flags flags, void } if (bftw_path_concat(&state, de->d_name) != 0) { + closedir(dir); goto fail; } |