aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-31 12:14:25 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-10-31 12:14:25 +0100
commitefaee91465bfb12cd3550ecbb914741eca45eb82 (patch)
tree1a46f2e0e4ab3992dd8cb7803f43a94ef984c1bb /src
parent9c796dbb040201d33db272f12d349b6bde8d17ad (diff)
Set basecap to 0 when freeing baseptr
Diffstat (limited to 'src')
-rw-r--r--src/work.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/work.c b/src/work.c
index 7656d4d..3ed941f 100644
--- a/src/work.c
+++ b/src/work.c
@@ -155,6 +155,7 @@ process_file(const char *locl_filename, unsigned char **locl_buf)
free(baseptr);
array_free(hl);
baseptr = nullptr;
+ basecap = 0;
hl = nullptr;
#endif
return;