]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Fix leak
authorMax Reitz <mreitz@redhat.com>
Mon, 19 Nov 2018 10:19:21 +0000 (11:19 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 21 Nov 2018 14:17:46 +0000 (15:17 +0100)
commit3ecd5a4f19fd9a497490a91aaa96e76a5edadd2c
treef5128a58b6e0167192ed17269ac55255f0862fe0
parentf0998879e049dad19beed881a1c56643ce536384
qemu-img: Fix leak

create_opts was leaked here.  This is not too bad since the process is
about to exit anyway, but relying on that does not make the code nicer
to read.

Fixes: d402b6a21a825a5c07aac9251990860723d49f5d
Reported-by: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c