aboutsummaryrefslogtreecommitdiff
path: root/src/work.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-30 01:54:43 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-10-30 01:54:43 +0100
commit78035f6c9657da350598c9abcdf71d421d62084f (patch)
tree46c3245458c245026ddb1672851cede4d7e603c9 /src/work.c
parent042e43247f396a9000fead59d9bff87bf12806d6 (diff)
Don’t try to fclose() a garbage pointer
Diffstat (limited to 'src/work.c')
-rw-r--r--src/work.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/work.c b/src/work.c
index 37fd8b8..874d0cd 100644
--- a/src/work.c
+++ b/src/work.c
@@ -75,7 +75,7 @@ process_file(const char *locl_filename, unsigned char **locl_buf)
if (fp == nullptr) {
warn("fopen: %s:", filename);
atomic_store(&rv, EXIT_WARNING);
- goto out;
+ return;
}
allocator_t mem = init_heap_allocator(nullptr);