1
0
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:
Cristian Rodríguez 2015-08-30 18:19:34 -03:00
parent 82613b14ba
commit 0ba793fb8b

View File

@ -932,7 +932,7 @@ fail:
}
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;
size_t size = 0;
unsigned i;