mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
lxc: Resolve Coverity RESOURCE_LEAK
Commit id 'c27553b6e' added a return -1 in a failure path without the necessary VIR_FREE(stack)
This commit is contained in:
parent
8f8031df19
commit
dd25b5a793
@ -2463,6 +2463,7 @@ int lxcContainerStart(virDomainDefPtr def,
|
|||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("Config askes for inherit net namespace "
|
_("Config askes for inherit net namespace "
|
||||||
"as well as private network interfaces"));
|
"as well as private network interfaces"));
|
||||||
|
VIR_FREE(stack);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
VIR_DEBUG("Inheriting a net namespace");
|
VIR_DEBUG("Inheriting a net namespace");
|
||||||
|
Loading…
Reference in New Issue
Block a user