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
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
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
virnetclientstream.c
virnetclientstream.h
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
virnetmessage.c rpc: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:44 -05:00
virnetmessage.h
virnetprotocol.x
virnetsaslcontext.c rpc: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virnetsaslcontext.h
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
virnetserverprogram.c rpc: use g_new0 instead of VIR_ALLOC 2020-10-01 17:32:15 +02:00
virnetserverprogram.h
virnetserverservice.c virJSONValueArrayAppend: Clear pointer when taking ownership of passed value 2021-02-20 13:26:37 +01:00
virnetserverservice.h
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
virnettlscontext.c rpc: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virnettlscontext.h