mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
tests: use g_auto instead of virDomainFree
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
1 parent
9e1893ebd0
commit
6150910cf7
11 files changed
+13
-26
No files matched your search
+1
-2
@@ -1009,7 +1009,7 @@ testCompareDomXML2XMLFiles(virCaps *caps G_GNUC_UNUSED,
|
||||
g_autofree char *actual = NULL;
|
||||
int ret = -1;
|
||||
testCompareDomXML2XMLResult result;
|
||||
virDomainDef *def = NULL;
|
||||
g_autoptr(virDomainDef) def = NULL;
|
||||
unsigned int parse_flags = live ? 0 : VIR_DOMAIN_DEF_PARSE_INACTIVE;
|
||||
unsigned int format_flags = VIR_DOMAIN_DEF_FORMAT_SECURE;
|
||||
|
||||
@@ -1059,7 +1059,6 @@ testCompareDomXML2XMLFiles(virCaps *caps G_GNUC_UNUSED,
|
||||
expectResult, result);
|
||||
}
|
||||
|
||||
virDomainDefFree(def);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user