From 509ce9437ff77db84b5b035ad6b778fa8548a684 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 27 Nov 2012 12:57:57 +0000 Subject: [PATCH] Fix leak of virNetworkPtr in LXC startup failure path When starting an LXC guest with a virNetwork based NIC device, if the network was not active, the virNetworkPtr device would be leaked Signed-off-by: Daniel P. Berrange --- src/lxc/lxc_process.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index 28eecec1aa..514ef81f44 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -468,7 +468,6 @@ static int virLXCProcessSetupInterfaces(virConnectPtr conn, virReportError(VIR_ERR_INTERNAL_ERROR, _("Network '%s' is not active."), def->nets[i]->data.network.name); - goto cleanup; } if (!fail) {