« Previous | Next » 

Revision c2abccec

IDc2abccecd93d5977460fdfdab19461ccfa09ae21

Added by MORITA Kazutaka over 13 years ago

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 <>
Signed-off-by: Kevin Wolf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences