libvirt/src/remote
Daniel P. Berrangé 501825011c remote: 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
..
libvirtd-admin.socket.in systemd: Improve and unify unit descriptions 2023-10-02 10:41:07 +02:00
libvirtd-ro.socket.in systemd: Improve and unify unit descriptions 2023-10-02 10:41:07 +02:00
libvirtd-tcp.socket.in systemd: Improve and unify unit descriptions 2023-10-02 10:41:07 +02:00
libvirtd-tls.socket.in systemd: Improve and unify unit descriptions 2023-10-02 10:41:07 +02:00
libvirtd.aug.in
libvirtd.conf.in rpc: Don't warn about "max_client_requests" in single-threaded daemons 2023-02-15 12:36:17 +01:00
libvirtd.confd
libvirtd.init.in
libvirtd.libxl.logrotate.in
libvirtd.logrotate.in
libvirtd.lxc.logrotate.in
libvirtd.policy
libvirtd.qemu.logrotate.in
libvirtd.rules
libvirtd.sasl
libvirtd.service.extra.in systemd: Set service_extra_in/socket_extra_in everywhere 2023-10-25 12:19:32 +02:00
libvirtd.service.in systemd: Introduce systemd_service_limitmemlock_extra_in 2023-10-25 12:19:26 +02:00
libvirtd.socket.extra.in systemd: Set service_extra_in/socket_extra_in everywhere 2023-10-25 12:19:32 +02:00
libvirtd.socket.in systemd: Improve and unify unit descriptions 2023-10-02 10:41:07 +02:00
libvirtd.sysctl
lxc_protocol.x
meson.build build: switch over to new rpc generator code 2023-11-03 14:06:35 -04:00
qemu_protocol.x lib: Introduce 'virDomainQemuMonitorCommandWithFiles' 2022-03-01 13:29:49 +01:00
remote_daemon_config.c remote: Update format strings in translated messages 2023-04-01 11:40:34 +02:00
remote_daemon_config.h remote: remove unnecessary return value and if branch 2022-09-07 11:53:33 +02:00
remote_daemon_dispatch.c Define Network Metadata change event 2023-09-18 11:24:47 +02:00
remote_daemon_dispatch.h remote: Remove unused includes 2022-06-16 06:43:57 +02:00
remote_daemon_stream.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
remote_daemon_stream.h
remote_daemon.c remote: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
remote_daemon.h remote: Remove unused includes 2022-06-16 06:43:57 +02:00
remote_driver.c remote: use g_auto for client RPC return parameters 2023-11-03 14:06:35 -04:00
remote_driver.h
remote_protocol.x Define Network Metadata change event 2023-09-18 11:24:47 +02:00
remote_sockets.c remote: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
remote_sockets.h
remote_ssh_helper.c remote: Update format strings in translated messages 2023-04-01 11:40:34 +02:00
test_libvirtd.aug.in
virt-guest-shutdown.target
virtproxyd.confd
virtproxyd.init.in
virtproxyd.service.extra.in systemd: Set service_extra_in/socket_extra_in everywhere 2023-10-25 12:19:32 +02:00
virtproxyd.socket.extra.in systemd: Set service_extra_in/socket_extra_in everywhere 2023-10-25 12:19:32 +02:00