]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: use correct free function for virDomainDeviceDef
authorJán Tomko <jtomko@redhat.com>
Tue, 4 Feb 2020 23:58:52 +0000 (00:58 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 5 Feb 2020 08:56:57 +0000 (09:56 +0100)
commit3f40a487a9a820004214574f82f0e492a836adf0
tree1dc5233d44a5ac270562f8537063247a77192cf0
parent4ab2120f3bc1ab9de535a6ea9990900def4f9030
conf: use correct free function for virDomainDeviceDef

Simple g_autofree is not enough if we put allocated
data into the device structure.

Define the AUTOPTR_CLEANUP function and use it here.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reported-by: Xu Yandong <xuyandong2@huawei.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h