mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-19 13:55:12 -04:00
fix leaking virusnames in hm_free
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Thu Feb 3 16:40:24 CET 2011 (acab)
|
||||
-----------------------------------
|
||||
* libclamav/matcher-hash.c: stop leaking virusnames (nopool mode)
|
||||
|
||||
Mon Jan 31 16:53:39 CET 2011 (tk)
|
||||
---------------------------------
|
||||
* V 0.97rc
|
||||
|
||||
@@ -256,6 +256,8 @@ void hm_free(struct cli_matcher *root) {
|
||||
unsigned int keylen = hashlen[type];
|
||||
|
||||
mpool_free(root->mempool, szh->hash_array);
|
||||
while(szh->items)
|
||||
mpool_free(root->mempool, szh->virusnames[--szh->items]);
|
||||
mpool_free(root->mempool, szh->virusnames);
|
||||
mpool_free(root->mempool, szh);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user