chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remount: add tool that applies /etc/fstab mount options to all api mounts
[elogind.git]
/
src
/
hashmap.c
diff --git
a/src/hashmap.c
b/src/hashmap.c
index a59b880dffb25bb587f56714cbc03fb75cd2a7ee..51f00131f46f36d632b8ad159549a0dde57a25de 100644
(file)
--- a/
src/hashmap.c
+++ b/
src/hashmap.c
@@
-1,4
+1,4
@@
-/*-*- Mode: C; c-basic-offset: 8 -*-*/
+/*-*- Mode: C; c-basic-offset: 8
; indent-tabs-mode: nil
-*-*/
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-173,6
+173,15
@@
void hashmap_free(Hashmap*h) {
free(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;
void hashmap_clear(Hashmap *h) {
if (!h)
return;