summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-05-26 02:31:24 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-05-26 02:31:24 +0200
commit5b6627353e2bda89aa506b4573b3fc0d0aa28668 (patch)
tree54b0f8d90b3545bfc9709d20f017775899c2b685 /src/cache.c
parente877faf2c1c557399a57a884a21133e607909b16 (diff)
downloadconntrack-tools-5b6627353e2bda89aa506b4573b3fc0d0aa28668.tar.gz
conntrack-tools-5b6627353e2bda89aa506b4573b3fc0d0aa28668.zip
fix leak in cache_destroy(): release objects before destroying the cache
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c
index ed76680..fe5fd27 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -176,6 +176,7 @@ struct cache *cache_create(const char *name,
void cache_destroy(struct cache *c)
{
+ cache_flush(c);
hashtable_destroy(c->h);
free(c->features);
free(c->feature_offset);