chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
817e224
)
bus-proxyd: do not free NULL items
author
Kay Sievers
<kay@vrfy.org>
Sat, 7 Jun 2014 14:22:28 +0000
(16:22 +0200)
committer
Kay Sievers
<kay@vrfy.org>
Sat, 7 Jun 2014 14:22:28 +0000
(16:22 +0200)
src/bus-proxyd/bus-policy.c
patch
|
blob
|
history
diff --git
a/src/bus-proxyd/bus-policy.c
b/src/bus-proxyd/bus-policy.c
index af3b3abbf9100053c2a763fab11552dd26963f01..053495cebe7c13a8ea98e26a6bb5c2b181838935 100644
(file)
--- a/
src/bus-proxyd/bus-policy.c
+++ b/
src/bus-proxyd/bus-policy.c
@@
-557,8
+557,6
@@
void policy_free(Policy *p) {
LIST_REMOVE(items, first, i);
policy_item_free(i);
}
-
- policy_item_free(i);
}
while ((first = hashmap_steal_first(p->group_items))) {
@@
-567,8
+565,6
@@
void policy_free(Policy *p) {
LIST_REMOVE(items, first, i);
policy_item_free(i);
}
-
- policy_item_free(i);
}
hashmap_free(p->user_items);
@@
-646,7
+642,7
@@
static void dump_hashmap_items(Hashmap *h) {
}
}
-void policy_dump(Policy *p) {
+
noreturn
void policy_dump(Policy *p) {
printf("→ Default Items:\n");
dump_items(p->default_items);