diff options
author | Kay Sievers <kay@vrfy.org> | 2014-06-07 16:22:28 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-06-07 16:22:28 +0200 |
commit | 0c347259d3b5750caab1a7091cfef592aeff87d2 (patch) | |
tree | 1544f700d3a5a62c83e22360c53373c81e743817 /src/bus-proxyd/bus-policy.c | |
parent | 817e224bbce3ed157817961ef19c80a250845a05 (diff) |
bus-proxyd: do not free NULL items
Diffstat (limited to 'src/bus-proxyd/bus-policy.c')
-rw-r--r-- | src/bus-proxyd/bus-policy.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bus-proxyd/bus-policy.c b/src/bus-proxyd/bus-policy.c index af3b3abbf9..053495cebe 100644 --- 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); |