提交 8164b0e8 编写于 作者: J John Ferlan 提交者: Peter Krempa

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.
上级 2a5d14e2
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册