qcow2-bitmap: fix bitmap_free
commitb6b75a99dab760c902c3d355519e0dc2616872e1
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 14 Jul 2017 12:33:41 +0000 (14 15:33 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 25 Jul 2017 14:33:31 +0000 (25 16:33 +0200)
tree6f29d6f7e2c3399d6e04e8fc925f731456804044
parent0696ae2c9236a3589f5eaf5b00c12868b6f30a17
qcow2-bitmap: fix bitmap_free

Fix possible crash on error path in
qcow2_remove_persistent_dirty_bitmap. Although bitmap_free was added in
88ddffae8fc the bug was introduced later in commit 469c71edc72 (when
qcow2_remove_persistent_dirty_bitmap was added).

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20170714123341.373857-1-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-bitmap.c