libvirt/src/admin
Daniel P. Berrangé 154495a0c0 admin: use g_auto for client RPC return parameters
Currently some, but not all, methods have a call to the
xdr_free function, for the 'ret' variable. This is done
on methods where there are complex structs containing
allocated memory. In other cases the structs contain
allocated memory, but the pointer is stolen, so xdr_free
is not called. In other cases no allocated memory is
present, so xdr_free.

This is hard to reason about, because the definition of
the struct is not visible in the client stubs.

Switch to use g_auto() for the 'ret' variable, which
means 'xdr_free' is always going to be called. Some
places now need to use g_steal_pointer as a result.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-11-03 14:06:35 -04:00
..
admin_protocol.x admin: Introduce virAdmConnectSetDaemonTimeout 2022-07-07 14:35:30 +02:00
admin_remote.c admin: use g_auto for client RPC return parameters 2023-11-03 14:06:35 -04:00
admin_server_dispatch.c admin: Update format strings in translated messages 2023-04-01 11:40:32 +02:00
admin_server_dispatch.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
admin_server.c util: virtypedparam: Remove return values from virTypedParamListAdd* APIs 2023-05-02 14:32:46 +02:00
admin_server.h admin: Remove unused includes 2022-06-16 06:43:56 +02:00
libvirt_admin_private.syms Remove references to deleted Makefile.am 2021-04-13 11:21:00 +02:00
libvirt_admin_public.syms admin: Introduce virAdmConnectSetDaemonTimeout 2022-07-07 14:35:30 +02:00
libvirt-admin.c admin: Update format strings in translated messages 2023-04-01 11:40:32 +02:00
libvirt-admin.conf build: move admin code into admin directory 2019-10-23 14:30:58 +02:00
meson.build build: switch over to new rpc generator code 2023-11-03 14:06:35 -04:00