mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-30 18:50:18 +03:00
conf: Need to initialize variables before VIR_FREE
Resolve a couple of instances where variables were not initialized prior to potential VIR_FREE call in cleanup path.
This commit is contained in:
parent
2a5d14e206
commit
8164b0e804
@ -201,7 +201,7 @@ virDomainAuditNetDevice(virDomainDefPtr vmDef, virDomainNetDefPtr netDef,
|
||||
char uuidstr[VIR_UUID_STRING_BUFLEN];
|
||||
char macstr[VIR_MAC_STRING_BUFLEN];
|
||||
char *vmname;
|
||||
char *dev_name;
|
||||
char *dev_name = NULL;
|
||||
char *rdev;
|
||||
const char *virt;
|
||||
|
||||
@ -504,7 +504,7 @@ virDomainAuditCgroupPath(virDomainObjPtr vm, virCgroupPtr cgroup,
|
||||
{
|
||||
char *detail;
|
||||
char *rdev;
|
||||
char *extra;
|
||||
char *extra = NULL;
|
||||
|
||||
/* Nothing to audit for regular files. */
|
||||
if (rc > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user