]> git.ozlabs.org Git - petitboot/blobdiff - discover/boot.c
discover/boot: Fix log message with no newline
[petitboot] / discover / boot.c
index 8ad83beb6a98673ecfea8844406da4c0f662078f..583d141ddc440ccaa45ae80288d664e65ec44828 100644 (file)
@@ -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;
 }