1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

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-19 23:59:50 +02:00 committed by Yu Watanabe
parent 1ab191b3a9
commit dcb4e45ad8

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;