chiark / gitweb /
remount: add tool that applies /etc/fstab mount options to all api mounts
[elogind.git] / src / hashmap.c
index 6b6e909ba385a3542dc7944d95b2eb7006ba2e42..51f00131f46f36d632b8ad159549a0dde57a25de 100644 (file)
@@ -173,6 +173,15 @@ void hashmap_free(Hashmap*h) {
         free(h);
 }
 
+void hashmap_free_free(Hashmap *h) {
+        void *p;
+
+        while ((p = hashmap_steal_first(h)))
+                free(p);
+
+        hashmap_free(h);
+}
+
 void hashmap_clear(Hashmap *h) {
         if (!h)
                 return;