mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-13 08:56:09 -06: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;
|
return ret;
|
||||||
|
|
||||||
no_memory:
|
no_memory:
|
||||||
VIR_FREE(list);
|
|
||||||
VIR_FREE(buffer);
|
|
||||||
vshError(ctl, "%s", _("Out of memory"));
|
vshError(ctl, "%s", _("Out of memory"));
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
return ret;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Common code for the edit / net-edit / pool-edit functions which follow. */
|
/* Common code for the edit / net-edit / pool-edit functions which follow. */
|
||||||
|
Loading…
Reference in New Issue
Block a user