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:
parent
1ab191b3a9
commit
dcb4e45ad8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user