Stefan Hajnoczi 40ed35a3c4 qemu-img: always goto out in img_snapshot() error paths
The out label has the qemu_progress_end() and other cleanup calls.
Always goto out in error paths so the cleanup happens.  These error
paths now return 1 instead of -1.

Note that bdrv_unref(NULL) is safe.  We just need to initialize bs to
NULL at the top of the function.

We can now remove the obsolete bs_old_backing = NULL and bs_new_backing
= NULL for safe mode.  Originally it was necessary in commit 3e85c6fd
("qemu-img rebase") but became useless in commit c2abcce ("qemu-img:
avoid calling exit(1) to release resources properly") because the
variables are already initialized during declaration.

Reported-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
2014-08-29 10:46:57 +01:00
2014-08-20 21:15:56 +02:00
2014-08-29 10:46:57 +01:00
2014-08-29 10:46:57 +01:00
2014-08-26 13:52:15 +01:00
2014-08-15 15:07:14 +02:00
2014-08-26 13:52:15 +01:00
2014-08-18 14:39:10 -04:00
2014-08-24 13:16:32 +04:00
2014-08-15 18:54:07 +04:00
2014-07-09 15:50:11 +02:00
2014-08-09 00:06:32 +04:00
2014-07-09 15:50:11 +02:00
2014-08-24 13:16:32 +04:00
2014-08-12 14:26:12 +01:00
2014-08-25 13:25:16 +02:00
2014-07-14 12:03:21 +02:00
2014-08-15 16:37:17 +01:00
2014-08-15 16:37:17 +01:00
2014-08-18 14:39:10 -04:00
2014-08-15 18:44:48 +01:00
2014-08-18 11:59:27 +01:00
2014-08-06 17:53:07 +02:00
2014-08-12 14:29:55 +01:00
2014-08-01 18:30:08 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%