]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-bus: Fix incorrect cleanup attribute in bus_match_to_string() 1084/head
authorCristian Rodríguez <crrodriguez@opensuse.org>
Sun, 30 Aug 2015 21:19:34 +0000 (18:19 -0300)
committerCristian Rodríguez <crrodriguez@opensuse.org>
Sun, 30 Aug 2015 22:21:31 +0000 (19:21 -0300)
Must be _cleanup_fclose_ not _cleanup_free_

src/libsystemd/sd-bus/bus-match.c

index 2b83f439a7ba49f1d3f7582646a5d41c4e329535..7234e7926ac9e098b4e3ee2e43654cda0a644e7a 100644 (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;