From: Colin Walters Date: Thu, 7 Dec 2023 15:03:04 +0000 (-0500) Subject: prepare-root: Add an autofree X-Git-Tag: archive/raspbian/2024.8-1+rpi1^2~7^2~7^2~19^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=59cdd6119fa7083133d8d7fde109b53214b1bea2;p=ostree.git prepare-root: Add an autofree This doesn't matter at all, but I just noticed this while working on the code. --- diff --git a/src/switchroot/ostree-prepare-root.c b/src/switchroot/ostree-prepare-root.c index 27d06fa7..41fc8f98 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);