From fa16cdcbe2a9632edce3d9c227235d37518b7afa Mon Sep 17 00:00:00 2001 Message-Id: From: Jiri Denemark Date: Tue, 23 Feb 2010 12:01:20 +0100 Subject: [PATCH] virsh.c: avoid all leaks in OOM path in cmdCPUBaseline Mail-Followup-To: libvir-list@redhat.com Signed-off-by: Jiri Denemark --- tools/virsh.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index dc9d44c..5fdbbe5 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -7140,11 +7140,9 @@ cleanup: return ret; no_memory: - VIR_FREE(list); - VIR_FREE(buffer); vshError(ctl, "%s", _("Out of memory")); ret = FALSE; - return ret; + goto cleanup; } /* Common code for the edit / net-edit / pool-edit functions which follow. */ -- 1.7.0