mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-01 20:26:28 -04:00
Fix small leak when loading invalid FTM signatures
Resolves: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43844
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user