mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-22 14:50:27 +03:00
conf: use correct free function for virDomainVsockDef
Technically, there is no memleak here, since the only allocations are filled by virDomainDeviceInfoParseXML, which cleans up after itself. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
3f40a487a9
commit
4166856c23
@ -16458,7 +16458,7 @@ virDomainVsockDefParseXML(virDomainXMLOptionPtr xmlopt,
|
||||
xmlNodePtr cid;
|
||||
int val;
|
||||
g_autofree char *tmp = NULL;
|
||||
g_autofree virDomainVsockDefPtr vsock = NULL;
|
||||
g_autoptr(virDomainVsockDef) vsock = NULL;
|
||||
|
||||
ctxt->node = node;
|
||||
|
||||
|
@ -2891,6 +2891,7 @@ void virDomainFSDefFree(virDomainFSDefPtr def);
|
||||
void virDomainActualNetDefFree(virDomainActualNetDefPtr def);
|
||||
virDomainVsockDefPtr virDomainVsockDefNew(virDomainXMLOptionPtr xmlopt);
|
||||
void virDomainVsockDefFree(virDomainVsockDefPtr vsock);
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainVsockDef, virDomainVsockDefFree);
|
||||
void virDomainNetDefClear(virDomainNetDefPtr def);
|
||||
void virDomainNetDefFree(virDomainNetDefPtr def);
|
||||
void virDomainSmartcardDefFree(virDomainSmartcardDefPtr def);
|
||||
|
Loading…
x
Reference in New Issue
Block a user