From 0ba793fb8b2888e0c340fc6f054ef5e910fe48f0 Mon Sep 17 00:00:00 2001 From: Cristian Rodríguez Date: Sun, 30 Aug 2015 18:19:34 -0300 Subject: sd-bus: Fix incorrect cleanup attribute in bus_match_to_string() Must be _cleanup_fclose_ not _cleanup_free_ --- src/libsystemd/sd-bus/bus-match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsystemd/sd-bus/bus-match.c') diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c index 2b83f439a7..7234e7926a 100644 --- a/src/libsystemd/sd-bus/bus-match.c +++ b/src/libsystemd/sd-bus/bus-match.c @@ -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; -- cgit v1.2.3-54-g00ecf