diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-02-15 12:43:27 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-02-15 12:43:27 -0500 |
commit | 08e23800dcccc0bc302dabc18ba5f5b8f78c846d (patch) | |
tree | d84e6b92261ac5b82cc97fb0a013eb20703d0e6f /src | |
parent | b3cdf12d71798a26c1f6d46dceff7ed50b9eed83 (diff) | |
download | bfs-08e23800dcccc0bc302dabc18ba5f5b8f78c846d.tar.xz |
ioq: Add a missing close() if bfs_opendir() fails
Diffstat (limited to 'src')
-rw-r--r-- | src/ioq.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -623,6 +623,8 @@ static void ioq_reap_cqe(struct ioq_ring_state *state, struct io_uring_cqe *cqe) if (ent->result >= 0) { // TODO: io_uring_prep_getdents() bfs_polldir(args->dir); + } else { + xclose(fd); } break; |