X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemctl%2Fsystemctl.c;h=1c6fef484e47c9113e1201e4d1f44666b00dcc0b;hp=901212852d9b22ef864dec8ccc50cdded9381ac2;hb=cc19881a694c26af2d941246f72221df7e76ee02;hpb=2c652b6bfe816296a5664dae1125e6bb665b9d5e diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 901212852..1c6fef484 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4466,9 +4466,7 @@ static int cat(sd_bus *bus, char **args) { STRV_FOREACH(name, names) { _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_strv_free_ char **dropin_paths = NULL; - _cleanup_free_ char *fragment_path = NULL; - _cleanup_free_ char *unit = NULL; - + _cleanup_free_ char *fragment_path = NULL, *unit = NULL; char **path; unit = unit_dbus_path_from_name(*name);