diff options
| author | MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> | 2010-06-21 04:26:35 +0900 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2010-07-02 13:18:02 +0200 |
| commit | c2abccecd93d5977460fdfdab19461ccfa09ae21 (patch) | |
| tree | 7e7db3f9117ca14cb38d8311dc92c4353fcb46c1 /hw/virtio-net.c | |
| parent | c0897e0cb94e83ec1098867b81870e4f51f225b9 (diff) | |
| download | focaccia-qemu-c2abccecd93d5977460fdfdab19461ccfa09ae21.tar.gz focaccia-qemu-c2abccecd93d5977460fdfdab19461ccfa09ae21.zip | |
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>
Diffstat (limited to 'hw/virtio-net.c')
0 files changed, 0 insertions, 0 deletions