提交 87e8ff1b 编写于 作者: D Daniel P. Berrange

Fix leak build config file path

* src/libvirt.c: Free user directory path
上级 a8bb75a3
......@@ -974,8 +974,11 @@ virConnectConfigFile(void)
goto error;
if (virAsprintf(&path, "%s/.libvirt/libvirt.conf",
userdir) < 0)
userdir) < 0) {
VIR_FREE(userdir);
goto no_memory;
}
VIR_FREE(userdir);
}
return path;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册