commit | c2abccecd93d5977460fdfdab19461ccfa09ae21 | [log] [tgz] |
---|---|---|
author | MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> | Mon Jun 21 04:26:35 2010 +0900 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Jul 02 13:18:02 2010 +0200 |
tree | 7e7db3f9117ca14cb38d8311dc92c4353fcb46c1 | |
parent | c0897e0cb94e83ec1098867b81870e4f51f225b9 [diff] |
qemu-img: avoid calling exit(1) to release resources properly This patch removes exit(1) from error(), and properly releases resources such as a block driver and an allocated memory. For testing the Sheepdog block driver with qemu-iotests, it is necessary to call bdrv_delete() before the program exits. Because the driver releases the lock of VM images in the close handler. Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> Signed-off-by: Kevin Wolf <kwolf@redhat.com>