aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-06-05 14:55:54 +0100
committerKevin Wolf <kwolf@redhat.com>2017-06-09 13:46:20 +0200
commit272545cf215f183ecb84c1d0fca3fd38db806977 (patch)
treefc1cf0280bcd7a45290312a4293cc358746b6faf /scripts/qapi-commands.py
parentqemu-iotests: Test automatic commit job cancel on hot unplug (diff)
downloadqemu-272545cf215f183ecb84c1d0fca3fd38db806977.tar.xz
qemu-272545cf215f183ecb84c1d0fca3fd38db806977.zip
block/qcow.c: Fix memory leak in qcow_create()
Coverity points out that the code path in qcow_create() for the magic "fat:" backing file name leaks the memory used to store the filename (CID 1307771). Free the memory before we overwrite the pointer. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions