Hello, Please cc ttr...@deviceatlas.com for any response as well.
Kindest regards.
From cc54225cacf48d9bb3a2b82a2c93a1ddc7f81b42 Mon Sep 17 00:00:00 2001 From: David Carlier <dcarl...@afilias.info> Date: Fri, 25 Sep 2015 11:59:29 +0100 Subject: [PATCH 11/12] BUG/MINOR: chunk: New function introduced This new function is meant to free those two internal chunks, should be called during the deinit phase. --- src/chunk.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/chunk.c b/src/chunk.c index 3c1cfdf..1359adc 100644 --- a/src/chunk.c +++ b/src/chunk.c @@ -66,6 +66,17 @@ int alloc_trash_buffers(int bufsize) } /* + * free the trash buffers + */ +void free_trash_buffers(void) +{ + free(trash_buf2); + free(trash_buf1); + trash_buf2 = NULL; + trash_buf1 = NULL; +} + +/* * Does an snprintf() at the beginning of chunk <chk>, respecting the limit of * at most chk->size chars. If the chk->len is over, nothing is added. Returns * the new chunk size, or < 0 in case of failure. -- 2.1.4