]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: block: Don't leak server JSON object from protocol generators
authorPeter Krempa <pkrempa@redhat.com>
Thu, 9 Nov 2017 09:29:53 +0000 (10:29 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 13 Nov 2017 12:18:34 +0000 (13:18 +0100)
commit9249187f5b783dab0edcab0f3767da9f0b7253f0
treecb1b133d2e4347fbec1db079e510e430c3b46d62
parentbb15ac459969133fb1d9d3bbfe10b02b6e6405bd
qemu: block: Don't leak server JSON object from protocol generators

If creation of the main JSON object containing the storage portion of a
virStorageSource would fail but we'd allocate the server structure we'd
leak it. Found by coverity.
src/qemu/qemu_block.c