]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Avoid dereference of NULL pointer
authorPeter Krempa <pkrempa@redhat.com>
Wed, 23 Nov 2011 14:51:28 +0000 (15:51 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Nov 2011 15:19:48 +0000 (16:19 +0100)
commitc4b32641f10ec7cd94f907f453b9b6616e6acab9
treeeb37ab45f9c65529a093983d294bcb54767edcbb
parentdb2f680775c82ad8b9a97f573a26a3b91e4d1991
qemu: Avoid dereference of NULL pointer

If something fails while initializing qemu job object in
qemuDomainObjPrivateAlloc(), memory to the private pointer is freed, but
after that, the pointer is still dereferenced, which may result in a
segfault.

* qemuDomainObjPrivateAlloc() - Don't dereference NULL pointer.
src/qemu/qemu_domain.c