Skip to content

Commit

Permalink
prepare-root: Add an autofree
Browse files Browse the repository at this point in the history
This doesn't matter at all, but I just noticed this while working
on the code.
  • Loading branch information
cgwalters committed Dec 7, 2023
1 parent 6cb15c3 commit 59cdd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/switchroot/ostree-prepare-root.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 59cdd61

Please sign in to comment.