mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
virsh: be careful to return "FALSE" upon OOM
* tools/virsh.c (cmdCPUBaseline): Add an explicit "return" statement after the "no_memory:" label.
This commit is contained in:
parent
3f8de891c5
commit
62f4ae153b
@ -7141,6 +7141,7 @@ cleanup:
|
||||
no_memory:
|
||||
vshError(ctl, "%s", _("Out of memory"));
|
||||
ret = FALSE;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Common code for the edit / net-edit / pool-edit functions which follow. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user