X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=discover%2Fboot.c;h=583d141ddc440ccaa45ae80288d664e65ec44828;hb=209b10507b8f95f9f549ecb81158034038334c36;hp=8ad83beb6a98673ecfea8844406da4c0f662078f;hpb=51c6aaf7864eb65779d548ee2549caa357f71e2c;p=petitboot diff --git a/discover/boot.c b/discover/boot.c index 8ad83be..583d141 100644 --- a/discover/boot.c +++ b/discover/boot.c @@ -290,7 +290,7 @@ int boot(void *ctx, struct discover_boot_option *opt, struct boot_command *cmd, } 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; } @@ -371,8 +371,6 @@ no_load: 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"); @@ -385,5 +383,7 @@ no_load: } } + talloc_free(boot_task); + return result; }