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>
This commit is contained in:
Prasad Joshi 2014-03-26 01:55:53 +05:30 committed by Stefan Hajnoczi
parent 63678e17cf
commit bdf866fe6c

View file

@ -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;
}