diff options
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machine.c | 4 | ||||
-rw-r--r-- | src/machine/machined-dbus.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c index ab26803683..4fd56a11ae 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -231,11 +231,11 @@ static void machine_unlink(Machine *m) { char *sl; sl = strjoina("/run/systemd/machines/unit:", m->unit); - unlink(sl); + (void) unlink(sl); } if (m->state_file) - unlink(m->state_file); + (void) unlink(m->state_file); } int machine_load(Machine *m) { diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c index b1f5aebe0c..49f41c62d7 100644 --- a/src/machine/machined-dbus.c +++ b/src/machine/machined-dbus.c @@ -1124,8 +1124,7 @@ int match_job_removed(sd_bus_message *message, void *userdata, sd_bus_error *err return 0; if (streq_ptr(path, machine->scope_job)) { - free(machine->scope_job); - machine->scope_job = NULL; + machine->scope_job = mfree(machine->scope_job); if (machine->started) { if (streq(result, "done")) |