From 7b464ab882fc024e4dbdf29fc912852a7ae8337f Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Tue, 19 Apr 2022 18:46:27 -0400 Subject: [PATCH] Fix small leak when loading invalid FTM signatures Resolves: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43844 --- libclamav/matcher-ac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libclamav/matcher-ac.c b/libclamav/matcher-ac.c index 5399eab58..02bebf32b 100644 --- a/libclamav/matcher-ac.c +++ b/libclamav/matcher-ac.c @@ -2294,6 +2294,7 @@ inline static int ac_addspecial_add_alt_node(const char *subexpr, uint8_t sigopt newnode->unique = 0; ins->unique = 0; } else if (wild == 0) { /* duplicate */ + MPOOL_FREE(root->mempool, newnode->str); MPOOL_FREE(root->mempool, newnode); return CL_SUCCESS; }