diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 665cef8cbd7..1e9f50453b9 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -154,7 +154,6 @@ static int list_sessions(int argc, char *argv[], void *userdata) { _cleanup_(sd_bus_error_free) sd_bus_error error_tty = SD_BUS_ERROR_NULL; _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply_tty = NULL; const char *id, *user, *seat, *object, *tty = NULL; - _cleanup_free_ char *path = NULL; uint32_t uid; r = sd_bus_message_read(reply, "(susso)", &id, &uid, &user, &seat, &object); diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c index 9e9650fcedf..5a60ace9baf 100644 --- a/src/test/test-fs-util.c +++ b/src/test/test-fs-util.c @@ -24,7 +24,7 @@ #include "util.h" static void test_chase_symlinks(void) { - _cleanup_free_ char *result = NULL, *z = NULL, *w = NULL; + _cleanup_free_ char *result = NULL; char temp[] = "/tmp/test-chase.XXXXXX"; const char *top, *p, *pslash, *q, *qslash; int r, pfd;