sd-bus: Fix introspect memory leak

We have to free the contents of the set on top of the set itself.

Fixes #23443.
This commit is contained in:
Daan De Meyer
2022-05-20 14:53:28 +09:00
committed by Yu Watanabe
parent 1ab191b3a9
commit dcb4e45ad8
+1 -1
View File
@@ -926,7 +926,7 @@ int introspect_path(
char **ret,
sd_bus_error *error) {
_cleanup_ordered_set_free_ OrderedSet *s = NULL;
_cleanup_ordered_set_free_free_ OrderedSet *s = NULL;
_cleanup_(introspect_free) struct introspect intro = {};
bool empty;
int r;