aboutsummaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-02-10 15:14:02 +0100
committerMarkus Armbruster <armbru@redhat.com>2015-02-18 10:51:39 +0100
commit6936f299a47acf84b4d926d0eec4cdf3cf2274ba (patch)
tree32dffa3842c08f486af94194238fbdabc2907ca5 /qemu-img.c
parenta720a390b1b2260d245bcc96923bf17e186b4b7e (diff)
qemu-img: Avoid qerror_report_err() outside QMP command handlers
qerror_report_err() is a transitional interface to help with converting existing monitor commands to QMP. It should not be used elsewhere. Replace by error_report_err(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 97d04bd8d9..25b1369d70 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -889,8 +889,7 @@ done:
blk_unref(blk);
if (local_err) {
- qerror_report_err(local_err);
- error_free(local_err);
+ error_report_err(local_err);
return 1;
}