]> xenbits.xensource.com Git - libvirt.git/commit
conf: Convert virDomainChrSourceDefNew to return object
authorJohn Ferlan <jferlan@redhat.com>
Fri, 6 Apr 2018 16:05:38 +0000 (12:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 10 Apr 2018 12:11:09 +0000 (08:11 -0400)
commit2ada9ef1465f2fd3b9795c0e3f7a2980301289cc
tree17af48903045b963dea94a4b451daf69b8ee65a1
parent9e792d1aaa984978c1530e48d233a44c9ce7434f
conf: Convert virDomainChrSourceDefNew to return object

Let's use object referencing to handle the ChrSourceDef. A subsequent
patch then can allow the monConfig to take an extra reference before
dropping the domain lock to then ensure nothing free's the memory that
needs to be used.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
src/conf/domain_conf.c