]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - arch_init.c
error: Use error_report_err() where appropriate
[thirdparty/qemu.git] / arch_init.c
index 89c8fa46bb6087b953600a54c89ee9b9f36891c6..8414726e30870ee355d019a95e16051e1d51abaf 100644 (file)
@@ -1093,8 +1093,7 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id)
 
                             ret = qemu_ram_resize(block->offset, length, &local_err);
                             if (local_err) {
-                                error_report("%s", error_get_pretty(local_err));
-                                error_free(local_err);
+                                error_report_err(local_err);
                             }
                         }
                         break;