} else if (opt && opt->boot_image) {
image = opt->boot_image->url;
} else {
- pb_log("%s: no image specified", __func__);
+ pb_log("%s: no image specified\n", __func__);
return -1;
}
if (clean_dtb)
unlink(boot_task->local_dtb);
- talloc_free(boot_task);
-
if (!result) {
update_status(status_fn, status_arg, BOOT_STATUS_INFO,
"performing kexec reboot");
}
}
+ talloc_free(boot_task);
+
return result;
}