]> git.proxmox.com Git - mirror_qemu.git/commit
vmdk: fix buf leak in vmdk_parse_extents()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 4 Sep 2014 20:04:43 +0000 (21:04 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 8 Sep 2014 10:12:44 +0000 (11:12 +0100)
commitb6b1d31f098eef8cd13556d343e46c213fac972a
treed26f301c75bdc8d5651492a912f1a63c7e16b056
parentff74f33c310892c90c4439d963a6ce67f47ce18c
vmdk: fix buf leak in vmdk_parse_extents()

vmdk_open_sparse() does not take ownership of buf so the caller always
needs to free it.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
block/vmdk.c