]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Resolve Coverity RESOURCE_LEAK
authorJohn Ferlan <jferlan@redhat.com>
Tue, 8 Sep 2015 11:05:55 +0000 (07:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 24 Sep 2015 13:53:39 +0000 (09:53 -0400)
commita73c67b6cc4d2404b0c2d2af3cbd37f79b701f42
tree1022fb2c24e401bc3085a7f7a7ccd36dd5b1e923
parent83cbbbef4554bbaeaf916e67ef1d6be6701ab578
qemu: Resolve Coverity RESOURCE_LEAK

This seemed to be more of a false positive as for some reason Coverity
was missing the "ret < 0" goto error condition and somehow believing that
event could be overwritten.  At first I thought it was just the ret != 0
condition difference, but it wasn't.

In any case, make use of the recent change to qemuDomainEventQueue to
check event == NULL and just pass it as a parameter directly in the
error path. That avoids the error.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_driver.c