mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
vmx: use g_autofree in virVMXParseSerial
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
6afc449106
commit
c1ac66afdb
@ -2895,13 +2895,13 @@ virVMXParseSerial(virVMXContext *ctx, virConf *conf, int port,
|
|||||||
bool startConnected = false;
|
bool startConnected = false;
|
||||||
|
|
||||||
char fileType_name[48] = "";
|
char fileType_name[48] = "";
|
||||||
char *fileType = NULL;
|
g_autofree char *fileType = NULL;
|
||||||
|
|
||||||
char fileName_name[48] = "";
|
char fileName_name[48] = "";
|
||||||
char *fileName = NULL;
|
g_autofree char *fileName = NULL;
|
||||||
|
|
||||||
char network_endPoint_name[48] = "";
|
char network_endPoint_name[48] = "";
|
||||||
char *network_endPoint = NULL;
|
g_autofree char *network_endPoint = NULL;
|
||||||
|
|
||||||
g_autoptr(virURI) parsedUri = NULL;
|
g_autoptr(virURI) parsedUri = NULL;
|
||||||
|
|
||||||
@ -3048,10 +3048,6 @@ virVMXParseSerial(virVMXContext *ctx, virConf *conf, int port,
|
|||||||
g_clear_pointer(def, virDomainChrDefFree);
|
g_clear_pointer(def, virDomainChrDefFree);
|
||||||
}
|
}
|
||||||
|
|
||||||
VIR_FREE(fileType);
|
|
||||||
VIR_FREE(fileName);
|
|
||||||
VIR_FREE(network_endPoint);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user