]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Fri, 1 May 2015 12:55:12 +0000 (08:55 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 6 May 2015 00:02:36 +0000 (20:02 -0400)
commit75dfbb85c7292779f32ffc17860f965ebd0edd1f
tree3a77b838c85248a0dda783d89a589a33bd0cd2c1
parent9ad32e5052ecce9ae6a328201c624fe45b7b2dc4
qemu: Resolve Coverity FORWARD_NULL

Coverity notes that ->ifname is used after the VIR_FREE done in the
code path after the call to virNetDevMacVLanDeleteWithVPortProfile
by a call to virNetDevOpenvswitchRemovePort.

Since the ->ifname will be VIR_FREE()'d eventually in virDomainNetDefFree
just remove the extraneous VIR_FREE here.

When originally added, the Openvswitch code wasn't present and checks
were made for non NULL prior to use.
src/qemu/qemu_hotplug.c