virsh.c: avoid all leaks in OOM path in cmdCPUBaseline

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2010-02-23 12:01:20 +01:00
parent 9568c1d985
commit dca81d0472

View File

@ -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. */