`ostree_async_progress_get_status()` returns an allocated string.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
if (!console.is_tty)
{
g_assert (progress);
- const char *status = ostree_async_progress_get_status (progress);
+ g_autofree char *status = ostree_async_progress_get_status (progress);
if (status)
g_print ("%s\n", status);
}
if (!console.is_tty && !opt_dry_run)
{
g_assert (progress);
- const char *status = ostree_async_progress_get_status (progress);
+ g_autofree char *status = ostree_async_progress_get_status (progress);
if (status)
g_print ("%s\n", status);
}