From: Cristian Rodríguez Date: Sun, 30 Aug 2015 21:19:34 +0000 (-0300) Subject: sd-bus: Fix incorrect cleanup attribute in bus_match_to_string() X-Git-Tag: v226~70^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1084%2Fhead;p=thirdparty%2Fsystemd.git sd-bus: Fix incorrect cleanup attribute in bus_match_to_string() Must be _cleanup_fclose_ not _cleanup_free_ --- diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c index 2b83f439a7b..7234e7926ac 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;