]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainResctrlNew: Refactor allocation to remove 'cleanup' label
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Oct 2020 08:36:59 +0000 (10:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 5 Oct 2020 13:50:45 +0000 (15:50 +0200)
commitf12f4e2658f187943640d287d7dd5e665156c558
tree8d31d0d26453b14920c345e4128bdd117dfe0f25
parent30ff783a80116c8aa7f7ac2b25a3439b0ba2af3e
virDomainResctrlNew: Refactor allocation to remove 'cleanup' label

If we use g_new0 there's no need for the 'cleanup' label as there's
nothing to fail after the allocation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c