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-06-23 11:00:12 -04: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-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2014-06-09 15:43:40 +02: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-06-23 11:12:28 -04:00
…
…
2013-10-11 09:34:56 -07: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-06-05 16:10:33 +02:00
2014-07-14 12:03:21 +02:00
…
2014-06-19 18:44:21 +03:00
2014-06-19 16:41:54 +03:00
…
2013-09-03 12:25:55 +02:00
2014-06-23 19:09:50 +02:00
2014-08-18 14:39:10 -04:00
2014-06-30 12:50:17 +02:00
2014-03-13 14:34:16 +00:00
2014-05-24 00:07:29 +04:00
2014-08-06 17:53:07 +02:00
2013-10-11 09:34:56 -07:00
…
2014-02-17 11:57:23 -05:00
2014-08-12 14:29:55 +01:00
2014-06-05 16:10:33 +02:00
2014-08-01 18:30:08 +01:00
2013-10-11 09:34:56 -07:00
2014-05-07 16:16:43 +00:00
2014-07-07 10:37:40 +00:00

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

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
720 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%