chiark / gitweb /
bus: always explicitly close bus from main programs
[elogind.git] / src / timedate / timedatectl.c
index 36c3f3cfcd083d913d3dfe828de0a0df8188be84..0ba32d31c4015e186598d6e3a518f2b5291a0c5f 100644 (file)
@@ -545,7 +545,7 @@ static int timedatectl_main(sd_bus *bus, int argc, char *argv[]) {
 }
 
 int main(int argc, char *argv[]) {
-        _cleanup_bus_unref_ sd_bus *bus = NULL;
+        _cleanup_bus_close_unref_ sd_bus *bus = NULL;
         int r;
 
         setlocale(LC_ALL, "");