summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorStefan Hajnoczi2014-08-15 18:59:54 +0200
committerStefan Hajnoczi2014-08-15 19:03:26 +0200
commit39ba3bf69c4ef4d8a8b683ee7282efd25b3f01ff (patch)
tree8b84be5bb2e566c9778f9492410c75e31b57d596 /hw
parentimage-fuzzer: Reduce number of generator functions in __init__ (diff)
downloadqemu-39ba3bf69c4ef4d8a8b683ee7282efd25b3f01ff.tar.gz
qemu-39ba3bf69c4ef4d8a8b683ee7282efd25b3f01ff.tar.xz
qemu-39ba3bf69c4ef4d8a8b683ee7282efd25b3f01ff.zip
qcow2: fix new_blocks double-free in alloc_refcount_block()
Commit de82815db1c89da058b7fb941dab137d6d9ab738 ("qcow2: Handle failure for potentially large allocations") introduced a double-free of new_blocks in the alloc_refcount_block() error path. The qemu-iotests qcow2 026 test case was failing because qemu-io segfaulted. Make sure new_blocks is NULL after we free it the first time. Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions