From: John Ferlan Date: Thu, 27 Aug 2015 10:59:38 +0000 (-0400) Subject: lxc: Resolve Coverity RESOURCE_LEAK X-Git-Tag: v1.2.19-rc2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd25b5a7936f91dcc9e46865df85b5cef09d9f03;p=thirdparty%2Flibvirt.git lxc: Resolve Coverity RESOURCE_LEAK Commit id 'c27553b6e' added a return -1 in a failure path without the necessary VIR_FREE(stack) --- diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index feb8fad73e..125e1c8068 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -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");