chiark / gitweb /
Prep v226: Apply missing fixes and changes to src/libelogind
[elogind.git] / src / libelogind / sd-bus / bus-match.c
index 8ef30f55e74e16d43e19b0a06ca22e966b935167..b1c00066098866e7ba956705bc35cf9ce018630a 100644 (file)
@@ -934,10 +934,11 @@ fail:
 /// UNNEEDED by elogind
 #if 0
 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;
+               int r;
 
         if (n_components <= 0)
                 return strdup("");