fix leaking virusnames in hm_free

This commit is contained in:
aCaB
2011-02-03 16:47:47 +01:00
parent 1aff6a352f
commit e010aa7a2f
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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);
}