libvirt/src/rpc
Pavel Hrdina d202681781 virnetdaemon: fix memory leak in virNetDaemonCallInhibit
g_variant_new() returns a weak reference which can be consumed by passing
to other g_variant* functions or to g_dbus_connection_call* functions.

This make it possible to call g_variant_new() directly as argument to
the functions above. Because this might be confusing I explicitly call
g_variant_ref_sink() to make it normal reference in both
virGDBusCallMethod() and virGDBusCallMethodWithFD() so the caller is
always responsible for the data.

Reported-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2020-09-23 16:45:50 +02:00
..
gendispatch.pl rpc: avoid name lookup when dispatching node device APIs 2020-03-17 13:58:20 +00:00
genprotocol.pl src: remove all traces of Cygwin support 2020-01-29 14:51:40 +00:00
meson.build src/rpc/virnetdaemon: convert to use GLib DBus 2020-09-17 18:20:32 +02:00
virkeepalive.c
virkeepalive.h
virkeepaliveprotocol.x
virnetclient.c rpc: use new virt-ssh-helper binary for remote tunnelling 2020-09-09 16:46:22 +01:00
virnetclient.h rpc: use new virt-ssh-helper binary for remote tunnelling 2020-09-09 16:46:22 +01:00
virnetclientprogram.c
virnetclientprogram.h
virnetclientstream.c
virnetclientstream.h
virnetdaemon.c virnetdaemon: fix memory leak in virNetDaemonCallInhibit 2020-09-23 16:45:50 +02:00
virnetdaemon.h rpc: cleanup virNetDaemonClose method 2020-09-07 09:33:59 +03:00
virnetlibsshsession.c Prefer https: everywhere where possible 2020-09-01 21:58:46 +02:00
virnetlibsshsession.h rpc: Make some functions void 2020-05-05 13:08:48 +02:00
virnetmessage.c rpc: Use glib memory functions in virNetMessageSaveError 2020-09-11 18:19:58 +02:00
virnetmessage.h
virnetprotocol.x src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virnetsaslcontext.c rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00
virnetsaslcontext.h rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00
virnetserver.c rpc: add shutdown facilities to netserver 2020-09-07 09:33:59 +03:00
virnetserver.h rpc: add shutdown facilities to netserver 2020-09-07 09:33:59 +03:00
virnetserverclient.c virnetserver: Check for virNetServerClientInitKeepAlive() retval 2020-05-05 13:08:34 +02:00
virnetserverclient.h
virnetserverprogram.c src: fix word spell typos 2020-07-09 10:01:41 +02:00
virnetserverprogram.h
virnetserverservice.c rpc: don't unref service ref on socket behalf twice 2020-09-07 09:33:58 +03:00
virnetserverservice.h
virnetsocket.c rpc: socket: properly call virSetCloseExec 2020-09-23 13:26:34 +02:00
virnetsocket.h remote: introduce virt-ssh-helper binary 2020-09-09 16:46:22 +01:00
virnetsshsession.c src: fix word spell typos 2020-07-09 10:01:41 +02:00
virnetsshsession.h rpc: Make some functions void 2020-05-05 13:08:48 +02:00
virnettlscontext.c virnetserver: fix some memory leaks in virNetTLSContextReloadForServer 2020-08-25 14:22:03 +02:00
virnettlscontext.h rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00