mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: use g_autoptr instead of virObjectUnref
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
@@ -30,7 +30,7 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml,
|
||||
int ret;
|
||||
testCompareNetXML2XMLResult result = TEST_COMPARE_NET_XML2XML_RESULT_SUCCESS;
|
||||
virNetworkDef *dev = NULL;
|
||||
virNetworkXMLOption *xmlopt = NULL;
|
||||
g_autoptr(virNetworkXMLOption) xmlopt = NULL;
|
||||
|
||||
if (!(xmlopt = networkDnsmasqCreateXMLConf()))
|
||||
goto cleanup;
|
||||
@@ -72,7 +72,6 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml,
|
||||
|
||||
VIR_FREE(actual);
|
||||
virNetworkDefFree(dev);
|
||||
virObjectUnref(xmlopt);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user