diff --git a/src/basic/fd-util.c b/src/basic/fd-util.c index dc63cb0d7c..e54881ca3c 100644 --- a/src/basic/fd-util.c +++ b/src/basic/fd-util.c @@ -575,7 +575,6 @@ int fd_duplicate_data_fd(int fd) { _cleanup_close_ int copy_fd = -1, tmp_fd = -1; _cleanup_free_ void *remains = NULL; - _cleanup_free_ char *t = NULL; size_t remains_size = 0; const char *td; struct stat st; diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 8e44d34d27..99690fc768 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -744,7 +744,6 @@ static int dump_profiles(void) { _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL; _cleanup_strv_free_ char **l = NULL; - _cleanup_(closedirp) DIR *d = NULL; char **i; int r; diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c index d97b522bdb..e67f1f0645 100644 --- a/src/shared/machine-image.c +++ b/src/shared/machine-image.c @@ -1100,7 +1100,6 @@ int image_read_metadata(Image *i) { sd_id128_t machine_id = SD_ID128_NULL; _cleanup_free_ char *hostname = NULL; _cleanup_free_ char *path = NULL; - _cleanup_fclose_ FILE *f = NULL; r = chase_symlinks("/etc/hostname", i->path, CHASE_PREFIX_ROOT|CHASE_TRAIL_SLASH, &path); if (r < 0 && r != -ENOENT)