blockdev: Add missing bdrv_unref() in drive-backup
commit0702d3d88c2059814212b83f01e14ff3bb7b0c66
authorMax Reitz <mreitz@redhat.com>
Mon, 9 Nov 2015 22:39:10 +0000 (9 23:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 18 Nov 2015 15:05:56 +0000 (18 16:05 +0100)
treedcf58744e3a4a33a0d26d223a39d7946a3d2471a
parent01809194a06d8e6c51c3e69600f14355225f4855
blockdev: Add missing bdrv_unref() in drive-backup

All error paths after a successful bdrv_open() of target_bs should
contain a bdrv_unref(target_bs). This one did not yet, so add it.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c