]> xenbits.xensource.com Git - libvirt.git/commit
Remove unnecessary virDomainDefClearDeviceAliases
authorJohn Ferlan <jferlan@redhat.com>
Tue, 19 Jul 2016 12:11:01 +0000 (08:11 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 27 Jul 2016 00:40:49 +0000 (20:40 -0400)
commitfc0378a973869d08ac2a40644cbe2225da12eff6
tree96bfe5d266544d9863642a24d35ff82f80e3e3c7
parentd95f5beb7948bc89ed1869cc0125c85f7fde0486
Remove unnecessary virDomainDefClearDeviceAliases

Nothing in the code path after the removed call has needs/uses the alias
anyway (as would be the case for command line building or talking to monitor).
The alias is VIR_FREE'd in virDomainDeviceInfoClear which is called for any
device that needs/uses an alias via virDomainDeviceDefFree or virDomainDefFree
as well as during virDomainDeviceInfoFree for host devices.

For persistent domains, the domain definition (including aliases) gets
freed a few screens later when it's replaced with newDef.

For transient domains, the definition is freed/unref'd along with the
virDomainObj a few moments later.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_process.c