14 Apr
2026
14 Apr
'26
4:16 p.m.
On Fri, Apr 10, 2026 at 16:12:07 +0200, Pavel Hrdina via Devel wrote:
From: Pavel Hrdina <phrdina@redhat.com>
Use g_auto() for every virBuffer in this function to make sure none of them will leak memory. It is not necessary to use on all of them because for some of the buffers virXMLFormatElement() is called before any return from the function but for consistency reasons it's better to use g_auto() for all cases.
Fixes: d9b34ad12b2da231431a761b03ca038cdd44bd42 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> --- src/conf/network_conf.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
Reviewed-by: Peter Krempa <pkrempa@redhat.com>