mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
virsh.c: avoid all leaks in OOM path in cmdCPUBaseline
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
9568c1d985
commit
dca81d0472
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user