]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Free allocated snapshot table on error
authorMax Reitz <mreitz@redhat.com>
Wed, 9 Oct 2013 08:51:05 +0000 (10:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Oct 2013 14:49:59 +0000 (16:49 +0200)
commit9186ad9658cc597937fbc03ad66bceb3a0515d99
tree1fea3eb6f04ddb311afa3108ad0dfb3a333c5340
parent37d41f0a04e5017d37906728a806d7944e867a2a
qcow2: Free allocated snapshot table on error

If an error occurs during qcow2_write_snapshots, the newly allocated
snapshot table clusters are leaked and should thus be freed.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-snapshot.c