]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-img: Fix leak
authorMax Reitz <mreitz@redhat.com>
Mon, 19 Nov 2018 10:19:21 +0000 (11:19 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 2 Apr 2019 01:36:21 +0000 (20:36 -0500)
commitc192d40267c824be1d3d6d13b8b16e6142ef2541
tree27e534126187d5d4e22262c88fd67283b75c92a2
parenta36defa3c8b6cc02d94749099f60615dfe8e0761
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>
(cherry picked from commit 3ecd5a4f19fd9a497490a91aaa96e76a5edadd2c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qemu-img.c