]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: avoid dereferencing a NULL pointer
authorAlex Jia <ajia@redhat.com>
Wed, 21 Sep 2011 19:02:44 +0000 (03:02 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 21 Sep 2011 21:25:52 +0000 (15:25 -0600)
commitd93a08eb47e248b165e1fa80d5198a91f9ca9e40
tree721d84cb4cea714e3f6d8d85a82fd5ae4463ea1b
parent42b23434b05f8e230e9a7354e773f32ba88687c7
qemu: avoid dereferencing a NULL pointer

* src/qemu/qemu_process.c: Taking if (qemuDomainObjEndJob(driver, obj) == 0)
  true branch then 'obj' is NULL, virDomainObjIsActive(obj) and
  virDomainObjUnref(obj) will dereference NULL pointer.

Signed-off-by: Alex Jia <ajia@redhat.com>
src/qemu/qemu_process.c