]> git.ipfire.org Git - thirdparty/libvirt.git/commit
parallels: Avoid possible leak of "cpu" from parallelsBuildCapabilities
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jun 2014 07:36:30 +0000 (09:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jun 2014 07:49:56 +0000 (09:49 +0200)
commit20d0c33aee34ea2bf36b1a2b648474e101ca1126
tree4b939a98d04914fb7a2bcaab00195b71f147e455
parentdf01390afc84fcf2e8728fbe5da6c11b7ab8b403
parallels: Avoid possible leak of "cpu" from parallelsBuildCapabilities

4d06af97d38c3648937eb8f732704379b3cd9e59 introduced a possible memory
leak of the memory allocated into the "cpu" pointer in
parallelsBuildCapabilities in the case "nodeGetInfo()" would fail right
after the allocation. Rearrange the code to avoid the possibility of the
leak.

Found by Coverity.
src/parallels/parallels_driver.c