From 7f9d6c3b914d18c6379c94ca60de410e6180d421 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 7 Dec 2023 10:03:04 -0500 Subject: [PATCH] prepare-root: Add an autofree This doesn't matter at all, but I just noticed this while working on the code. --- src/switchroot/ostree-prepare-root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switchroot/ostree-prepare-root.c b/src/switchroot/ostree-prepare-root.c index 27d06fa7f8..41fc8f98c3 100644 --- a/src/switchroot/ostree-prepare-root.c +++ b/src/switchroot/ostree-prepare-root.c @@ -374,7 +374,7 @@ main (int argc, char *argv[]) const char *root_mountpoint = realpath (root_arg, NULL); if (root_mountpoint == NULL) err (EXIT_FAILURE, "realpath(\"%s\")", root_arg); - char *deploy_path = resolve_deploy_path (root_mountpoint); + g_autofree char *deploy_path = resolve_deploy_path (root_mountpoint); if (mkdirat (AT_FDCWD, OTCORE_RUN_OSTREE, 0755) < 0) err (EXIT_FAILURE, "Failed to create %s", OTCORE_RUN_OSTREE);