summaryrefslogtreecommitdiffstats
path: root/src/shared/bus-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r--src/shared/bus-util.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index df701a3bfe..c7611a6e85 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -1695,14 +1695,10 @@ int bus_introspect_implementations(
if (impl != main_impl)
bus_introspect_implementation(&intro, impl);
- _cleanup_set_free_free_ Set *nodes = NULL;
+ _cleanup_set_free_ Set *nodes = NULL;
for (size_t i = 0; impl->children && impl->children[i]; i++) {
- r = set_ensure_allocated(&nodes, &string_hash_ops);
- if (r < 0)
- return log_oom();
-
- r = set_put_strdup(nodes, impl->children[i]->path);
+ r = set_put_strdup(&nodes, impl->children[i]->path);
if (r < 0)
return log_oom();
}