mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
sd-bus: Fix incorrect cleanup attribute in bus_match_to_string()
Must be _cleanup_fclose_ not _cleanup_free_
This commit is contained in:
parent
82613b14ba
commit
0ba793fb8b
@ -932,7 +932,7 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *bus_match_to_string(struct bus_match_component *components, unsigned n_components) {
|
char *bus_match_to_string(struct bus_match_component *components, unsigned n_components) {
|
||||||
_cleanup_free_ FILE *f = NULL;
|
_cleanup_fclose_ FILE *f = NULL;
|
||||||
char *buffer = NULL;
|
char *buffer = NULL;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
Loading…
Reference in New Issue
Block a user