]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xen_xl.c: Use g_autoptr() for virCPUDef
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Jan 2022 08:37:29 +0000 (09:37 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Jan 2022 08:53:45 +0000 (09:53 +0100)
commitd90cb8ff1096ed7e012d794bc900feece2429152
treeb3a9897b42a8a88e797480d9998a78d98ffb5060
parentef7f01b6d0f0003e5726dfbbc99ecea7d7ec97e8
xen_xl.c: Use g_autoptr() for virCPUDef

In xenParseXLVnuma() the @cpu variable is freed explicitly.
However, when switched to g_autoptr(virCPUDef) the explicit call
can be removed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/libxl/xen_xl.c