Stefan Hajnoczi
39ba3bf69c
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>
2014-08-15 18:03:26 +01:00
..
2014-08-15 15:07:14 +02:00
2014-07-09 15:50:11 +02:00
2014-08-15 18:03:11 +01:00
2014-06-04 09:56:11 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-07-01 10:47:01 +02:00
2014-07-01 10:15:34 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-06-16 17:23:21 +08:00
2014-08-15 15:07:15 +02:00
2014-07-15 15:34:13 +02:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:16 +02:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-06-04 09:56:11 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 18:03:13 +01:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:16 +02:00
2014-08-15 18:03:26 +01:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2014-04-01 15:22:35 +02:00
2014-08-15 15:07:15 +02:00
2014-08-15 15:07:15 +02:00
2011-08-20 23:01:08 -05:00
2011-08-20 23:01:08 -05:00
2012-03-12 15:14:06 +01:00
2014-06-04 09:56:11 +02:00
2014-08-15 15:07:15 +02:00
2014-07-14 12:03:20 +02:00
2014-06-27 14:18:17 +02:00
2014-07-18 13:18:43 +01:00
2014-07-07 11:05:17 +02:00
2014-08-15 15:07:15 +02:00
2014-06-16 17:23:21 +08:00
2014-08-15 15:07:16 +02:00
2014-06-23 16:36:13 +08:00
2014-02-17 11:57:23 -05:00
2014-06-16 17:23:21 +08:00
2014-07-18 13:18:43 +01:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:14 +02:00
2014-08-15 15:07:16 +02:00
2014-08-15 15:07:16 +02:00
2014-06-16 17:23:21 +08:00
2014-08-15 15:07:16 +02:00