libvirt/tools
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
..
bash-completion tools: Set IFS for bash completion script 2021-01-26 16:46:41 +01:00
nss meson: Fix build with -Dtest_coverage=true 2021-01-19 16:25:50 +01:00
wireshark meson: Fix build with -Dtest_coverage=true 2021-01-19 16:25:50 +01:00
libvirt_recover_xattrs.sh libvirt_recover_xattrs: Allow fixing multiple PATHs 2020-12-04 16:27:22 +01:00
libvirt_win_icon_16x16.ico
libvirt_win_icon_32x32.ico
libvirt_win_icon_48x48.ico
libvirt_win_icon_64x64.ico
libvirt-guests.service.in
libvirt-guests.sh.in
libvirt-guests.sysconf libvirt-guests: Remove obsolete Windows comment 2020-12-07 10:38:44 +00:00
meson.build
virsh_win_icon.rc
virsh-backup.c
virsh-backup.h
virsh-checkpoint.c Use g_steal_pointer where possible 2021-03-01 15:54:42 +01:00
virsh-checkpoint.h
virsh-completer-checkpoint.c
virsh-completer-checkpoint.h
virsh-completer-domain.c virsh: Add virshKeycodeNameCompleter 2021-02-19 07:39:56 +01:00
virsh-completer-domain.h virsh: Add virshKeycodeNameCompleter 2021-02-19 07:39:56 +01:00
virsh-completer-host.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-host.h
virsh-completer-interface.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-interface.h
virsh-completer-network.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-network.h
virsh-completer-nodedev.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-nodedev.h
virsh-completer-nwfilter.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-nwfilter.h
virsh-completer-pool.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-pool.h
virsh-completer-secret.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-secret.h
virsh-completer-snapshot.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-snapshot.h
virsh-completer-volume.c lib: Replace VIR_AUTOSTRINGLIST with GStrv 2020-12-02 15:43:07 +01:00
virsh-completer-volume.h
virsh-completer.c Replace virStringSplit with g_strsplit 2021-02-11 17:05:34 +01:00
virsh-completer.h
virsh-console.c src: add missing headers to various files 2021-01-06 13:15:17 +01:00
virsh-console.h
virsh-domain-monitor.c tools: report messages for 'dominfo' command 2021-02-12 09:19:13 +00:00
virsh-domain-monitor.h
virsh-domain.c Use g_steal_pointer where possible 2021-03-01 15:54:42 +01:00
virsh-domain.h
virsh-edit.c
virsh-host.c Replace virStringListLength by g_strv_length 2021-02-11 17:05:34 +01:00
virsh-host.h
virsh-interface.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
virsh-interface.h
virsh-network.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
virsh-network.h
virsh-nodedev.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
virsh-nodedev.h
virsh-nwfilter.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
virsh-nwfilter.h
virsh-pool.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
virsh-pool.h
virsh-secret.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
virsh-secret.h
virsh-snapshot.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
virsh-snapshot.h
virsh-util.c src: add missing headers to various files 2021-01-06 13:15:17 +01:00
virsh-util.h
virsh-volume.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
virsh-volume.h
virsh.c vsh: Rework how option to complete is found 2021-01-26 16:46:41 +01:00
virsh.h
virt-admin-completer.c
virt-admin-completer.h
virt-admin.c vsh: Rework how option to complete is found 2021-01-26 16:46:41 +01:00
virt-admin.h
virt-host-validate-bhyve.c
virt-host-validate-bhyve.h
virt-host-validate-common.c
virt-host-validate-common.h
virt-host-validate-lxc.c
virt-host-validate-lxc.h
virt-host-validate-qemu.c
virt-host-validate-qemu.h
virt-host-validate.c
virt-login-shell-helper.c Replace virStringListLength by g_strv_length 2021-02-11 17:05:34 +01:00
virt-login-shell.c
virt-login-shell.conf
virt-pki-validate.in
virt-sanlock-cleanup.in
virt-xml-validate.in
vsh-table.c tools: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:45 -05:00
vsh-table.h
vsh.c Replace virStringListLength by g_strv_length 2021-02-11 17:05:34 +01:00
vsh.h vsh: Rework how option to complete is found 2021-01-26 16:46:41 +01:00