From efaee91465bfb12cd3550ecbb914741eca45eb82 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 31 Oct 2024 12:14:25 +0100 Subject: Set basecap to 0 when freeing baseptr --- src/work.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/work.c') 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; -- cgit v1.2.3