aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2014-06-19 12:20:08 -0400
committerJorge Arellano Cid <jcid@dillo.org>2014-06-19 12:20:08 -0400
commit0e2d30689c465c4b44a0b996e99864da35b1a72d (patch)
treea1c9bf5b4675f9f760e73102e29c0d9cbe596b43 /src
parent9facb557c8f98d7bbe92566d7c1e2242d927c981 (diff)
Avoid a memory leak at exit time
Useful to avoid "false positives" with valgrind.
Diffstat (limited to 'src')
-rw-r--r--src/dicache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dicache.c b/src/dicache.c
index 7f4cac85..39d89509 100644
--- a/src/dicache.c
+++ b/src/dicache.c
@@ -572,7 +572,7 @@ void a_Dicache_cleanup(void)
/*
* Deallocate memory used by dicache module
- * (Call this one at exit time)
+ * (Call this one at exit time, with no cache clients queued)
*/
void a_Dicache_freeall(void)
{
@@ -587,6 +587,7 @@ void a_Dicache_freeall(void)
a_Bitvec_free(entry->BitVec);
a_Imgbuf_unref(entry->v_imgbuf);
dicache_size_total -= entry->TotalSize;
+ dFree(entry);
}
dList_remove_fast(CachedIMGs, node);
a_Url_free(node->url);