]> Git Repo - qemu.git/blobdiff - qemu-img.c
tcg/tci: enable dynamic TLB sizing
[qemu.git] / qemu-img.c
index 4c96db7ba468aa9a2c6a717740227790b0e89376..ad04f5956547f7d2944a7ce56eb856e664ad8aaa 100644 (file)
@@ -261,8 +261,9 @@ static int print_block_option_help(const char *filename, const char *fmt)
             return 1;
         }
         if (!proto_drv->create_opts) {
-            error_report("Protocal driver '%s' does not support image creation",
+            error_report("Protocol driver '%s' does not support image creation",
                          proto_drv->format_name);
+            qemu_opts_free(create_opts);
             return 1;
         }
         create_opts = qemu_opts_append(create_opts, proto_drv->create_opts);
@@ -1029,6 +1030,7 @@ static int img_commit(int argc, char **argv)
     }
 
     job = block_job_get("commit");
+    assert(job);
     run_block_job(job, &local_err);
     if (local_err) {
         goto unref_backing;
This page took 0.025462 seconds and 4 git commands to generate.