X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flibelogind%2Fsd-bus%2Fbus-match.c;h=b1c00066098866e7ba956705bc35cf9ce018630a;hp=8ef30f55e74e16d43e19b0a06ca22e966b935167;hb=aada2b1bb29e22e6f19fec6994be09e156e66ce0;hpb=4ebadef69ff96e92122a133cfecadf60816c4fa3 diff --git a/src/libelogind/sd-bus/bus-match.c b/src/libelogind/sd-bus/bus-match.c index 8ef30f55e..b1c000660 100644 --- a/src/libelogind/sd-bus/bus-match.c +++ b/src/libelogind/sd-bus/bus-match.c @@ -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("");