提交 dd25b5a7 编写于 作者: J John Ferlan

lxc: Resolve Coverity RESOURCE_LEAK

Commit id 'c27553b6' added a return -1 in a failure path without
the necessary VIR_FREE(stack)
上级 8f8031df
......@@ -2463,6 +2463,7 @@ int lxcContainerStart(virDomainDefPtr def,
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("Config askes for inherit net namespace "
"as well as private network interfaces"));
VIR_FREE(stack);
return -1;
}
VIR_DEBUG("Inheriting a net namespace");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册