aboutsummaryrefslogtreecommitdiff
path: root/src/dicache.c
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
commit79abba041d5dc8961d99fd45ea16382c6319226e (patch)
treeaaa31e8600e76ce29868f1cb8a3c506dfc6515ed /src/dicache.c
parent24f92f1a625dfd9631b5350a56e75205083350df (diff)
Avoid a memory leak at exit time
Useful to avoid "false positives" with valgrind.
Diffstat (limited to 'src/dicache.c')
-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);