summaryrefslogtreecommitdiffstats
path: root/bftw.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-02-07 23:23:54 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-02-07 23:47:43 -0500
commit360bb95f1d0296efd8c784b13b05daf289336684 (patch)
tree2555ec5caaeb2829d6ade4b7b4cb87cab36f1e9d /bftw.c
parent7348cdc86c3b507cb2f0935148ec07c846652834 (diff)
downloadbfs-360bb95f1d0296efd8c784b13b05daf289336684.tar.xz
bftw: Add mising closedir() to error path
Diffstat (limited to 'bftw.c')
-rw-r--r--bftw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bftw.c b/bftw.c
index ab16b67..d62a71f 100644
--- a/bftw.c
+++ b/bftw.c
@@ -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;
}