chiark / gitweb /
Introduce _cleanup_endmntent_
[elogind.git] / src / journal / mmap-cache.c
index 767f5555265c7e73aee0c94ec83e0b51788a5baa..03b57beb046fc72019116ea368dc72ccc6cf0872 100644 (file)
@@ -307,9 +307,13 @@ static void mmap_cache_free(MMapCache *m) {
         while ((c = hashmap_first(m->contexts)))
                 context_free(c);
 
+        hashmap_free(m->contexts);
+
         while ((f = hashmap_first(m->fds)))
                 fd_free(f);
 
+        hashmap_free(m->fds);
+
         while (m->unused)
                 window_free(m->unused);