aboutsummaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorPrasad Joshi <prasadjoshi.linux@gmail.com>2014-03-26 01:55:53 +0530
committerStefan Hajnoczi <stefanha@redhat.com>2014-04-01 13:49:53 +0200
commitbdf866fe6cce1f949227c32fcc9b7320fcdc60c6 (patch)
treec65f46cd0c371fe9c5dd2476291d62266d0af080 /qemu-img.c
parent63678e17cf399ff81b93417fe7bee8d6ef6b6b1b (diff)
qemu-img: Release reference to BlockDriverState
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 77d946b5cc..8455994c65 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -1809,6 +1809,7 @@ static ImageInfoList *collect_image_info_list(const char *filename,
if (err) {
error_report("%s", error_get_pretty(err));
error_free(err);
+ bdrv_unref(bs);
goto err;
}