libvirt/src/rpc
Kristina Hanicova 155151a3d0 Use g_steal_pointer where possible
Via coccinelle (not the handbag!)
spatches used:
@ rule1 @
identifier a, b;
symbol NULL;
@@

- b = a;
  ... when != a
- a = NULL;
+ b = g_steal_pointer(&a);

@@

- *b = a;
  ... when != a
- a = NULL;
+ *b = g_steal_pointer(&a);

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
2021-03-01 15:54:42 +01:00
..
gendispatch.pl gendispatch: use g_new0 instead of VIR_ALLOC 2020-10-01 17:32:15 +02: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 rpc: avoid crash when system time jump back 2021-02-17 18:53:44 +01:00
virkeepalive.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virkeepaliveprotocol.x
virnetclient.c rpc: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virnetclient.h rpc: use new virt-ssh-helper binary for remote tunnelling 2020-09-09 16:46:22 +01:00
virnetclientprogram.c rpc: use g_new0 instead of VIR_ALLOC 2020-10-01 17:32:15 +02:00
virnetclientprogram.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetclientstream.c rpc: use G_GNUC_UNUSED 2019-10-15 11:25:24 +02:00
virnetclientstream.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetdaemon.c virJSONValueObjectAppend: Clear pointer when taking ownership of passed value 2021-02-20 13:26:37 +01:00
virnetdaemon.h virnetdaemon: Wait for "daemon-stop" thread to finish before quitting 2020-11-24 17:52:54 +01:00
virnetlibsshsession.c rpc: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virnetlibsshsession.h rpc: Make some functions void 2020-05-05 13:08:48 +02:00
virnetmessage.c rpc: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:44 -05:00
virnetmessage.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virnetprotocol.x src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virnetsaslcontext.c rpc: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virnetsaslcontext.h rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00
virnetserver.c Use g_steal_pointer where possible 2021-03-01 15:54:42 +01:00
virnetserver.h rpc: add shutdown facilities to netserver 2020-09-07 09:33:59 +03:00
virnetserverclient.c virJSONValueObjectAppend: Clear pointer when taking ownership of passed value 2021-02-20 13:26:37 +01:00
virnetserverclient.h remote_daemon_stream: Fix @client locking in daemonStreamFilter() 2019-11-19 16:09:53 +01:00
virnetserverprogram.c rpc: use g_new0 instead of VIR_ALLOC 2020-10-01 17:32:15 +02:00
virnetserverprogram.h src/rpc: use #pragma once in headers 2019-06-19 17:12:30 +02:00
virnetserverservice.c virJSONValueArrayAppend: Clear pointer when taking ownership of passed value 2021-02-20 13:26:37 +01:00
virnetserverservice.h rpc: remove unused API for creating services from FDs 2019-07-12 16:55:40 +01:00
virnetsocket.c Replace virStringSplit with g_strsplit 2021-02-11 17:05:34 +01:00
virnetsocket.h remote: introduce virt-ssh-helper binary 2020-09-09 16:46:22 +01:00
virnetsshsession.c rpc: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virnetsshsession.h rpc: Make some functions void 2020-05-05 13:08:48 +02:00
virnettlscontext.c rpc: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virnettlscontext.h rpc: remove use of the term 'whitelist' from RPC code 2020-06-26 15:36:40 +01:00