diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-20 03:26:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-20 03:26:15 +0200 |
commit | 449ddb2d23a63ca4c8cd70d13a070fba87c1fb30 (patch) | |
tree | c202f02f5162b0881a0e8df4a35adc211fcd57b6 /src/hashmap.c | |
parent | 11ce3427242b8b4ddf638ed5703d69041d719b4c (diff) |
remount: add tool that applies /etc/fstab mount options to all api mounts
Diffstat (limited to 'src/hashmap.c')
-rw-r--r-- | src/hashmap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hashmap.c b/src/hashmap.c index 6b6e909ba3..51f00131f4 100644 --- a/src/hashmap.c +++ b/src/hashmap.c @@ -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; |