libvirt/src/util
Michal Privoznik 0c30e7221c lib: Use g_steal_pointer() more
Generated by the following spatch:

  @@
  expression a, b;
  @@

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

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2021-03-24 13:57:51 +01:00
..
glibcompat.c src: ensure GSource background unref happens in correct event loop 2021-03-17 09:16:05 +00:00
glibcompat.h src: ensure GSource background unref happens in correct event loop 2021-03-17 09:16:05 +00:00
iohelper.c util: iohelper: Don't handle OOM from posix_memalign 2021-03-02 09:50:19 +01:00
meson.build meson: tools: depend on keycode generated sources 2021-03-05 20:05:54 +04:00
viralloc.c util: Make virReallocN return void 2021-03-22 12:44:18 +01:00
viralloc.h util: Make virReallocN return void 2021-03-22 12:44:18 +01:00
virarch.c
virarch.h util: add ARCH_IS_MIPS64 helper macro 2020-11-20 12:09:51 +00:00
virarptable.c Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
virarptable.h
viraudit.c
viraudit.h
virauth.c
virauth.h
virauthconfig.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virauthconfig.h
virbitmap.c Do not check return value of VIR_RESIZE_N 2021-03-22 12:44:18 +01:00
virbitmap.h util: virbitmap: Remove virBitmapCopy 2020-10-05 15:50:45 +02:00
virbpf.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virbpf.h lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virbuffer.c virBufferAdd: Ensure that the buffer is initialized also when len == 0 2021-03-05 15:33:34 +01:00
virbuffer.h
vircgroup.c vircgroup: drop unused function virCgroupSetupCpuShares 2021-03-04 11:13:31 +01:00
vircgroup.h vircgroup: drop unused function virCgroupSetupCpuShares 2021-03-04 11:13:31 +01:00
vircgroupbackend.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
vircgroupbackend.h vircgroup: introduce virCgroupV1Exists and virCgroupV2Exists 2021-02-10 13:37:12 +01:00
vircgrouppriv.h vircgroup: introduce nested cgroup to properly work with systemd 2021-02-10 13:37:12 +01:00
vircgroupv1.c lib: Replace virFileMakePath() with g_mkdir_with_parents() 2021-03-04 20:52:23 +01:00
vircgroupv1.h
vircgroupv2.c lib: Replace virFileMakePath() with g_mkdir_with_parents() 2021-03-04 20:52:23 +01:00
vircgroupv2.h
vircgroupv2devices.c util: tell users that memory locking ulimit is too low for BPF 2021-03-17 09:16:44 +00:00
vircgroupv2devices.h
vircommand.c Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
vircommand.h virCommandSetSendBuffer: Provide saner semantics 2021-03-05 15:33:34 +01:00
vircommandpriv.h
virconf.c lib: Use g_steal_pointer() more 2021-03-24 13:57:51 +01:00
virconf.h
vircrypto.c virCryptoEncryptDataAESgnutls: Use virSecureErase instead of memset 2021-02-03 13:07:13 +01:00
vircrypto.h
virdaemon.c lib: Replace virFileMakePath() with g_mkdir_with_parents() 2021-03-04 20:52:23 +01:00
virdaemon.h
virdevmapper.c virDevMapperGetTargetsImpl: Use correct length when copying into dm.name 2021-03-08 12:16:13 +01:00
virdevmapper.h util: Move virIsDevMapperDevice() to virdevmapper.c 2020-06-15 14:50:46 +02:00
virdnsmasq.c Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
virdnsmasq.h
virebtables.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virebtables.h
virendian.h
virenum.c
virenum.h
virerror.c util: virerror: Avoid a copy of the error messages 2021-03-05 15:01:29 +01:00
virerror.h util: virerror: Remove VIR_ERROR_MAX_LENGTH macro 2021-03-05 15:01:29 +01:00
virerrorpriv.h
virevent.c util: event: check return value of virInitialize 2020-09-23 13:26:34 +02:00
virevent.h
vireventglib.c src: ensure GSource background unref happens in correct event loop 2021-03-17 09:16:05 +00:00
vireventglib.h
vireventglibwatch.c util: keep track of full GSource object not source ID number 2020-08-07 12:43:56 +01:00
vireventglibwatch.h util: keep track of full GSource object not source ID number 2020-08-07 12:43:56 +01:00
vireventthread.c util: do not unref event thread after joining it 2020-09-23 17:06:36 +02:00
vireventthread.h
virfcp.c virBuildPath: Remove return value 2021-03-02 09:50:19 +01:00
virfcp.h
virfdstream.c lib: Use g_steal_pointer() more 2021-03-24 13:57:51 +01:00
virfdstream.h
virfile.c Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
virfile.h util: Drop virFileMakePath() and virFileMakePathWithMode() 2021-03-04 20:52:23 +01:00
virfilecache.c lib: Replace virFileMakePath() with g_mkdir_with_parents() 2021-03-04 20:52:23 +01:00
virfilecache.h
virfirewall.c Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
virfirewall.h util: synchronize with firewalld before we start calling iptables directly 2020-11-24 14:21:58 -05:00
virfirewalld.c util: firewall: use g_new0 2020-10-06 12:31:34 +02:00
virfirewalld.h
virfirewalldpriv.h
virfirewallpriv.h
virfirmware.c Replace virStringSplit with g_strsplit 2021-02-11 17:05:34 +01:00
virfirmware.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
virgdbus.c virgdbus: fix getting non-shared DBus connection 2020-11-09 23:42:33 +01:00
virgdbus.h virgdbus: add DBus reply format check 2020-09-23 12:53:31 +02:00
virgettext.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virgettext.h
virgic.c
virgic.h
virglibutil.c util: Add helpers for auto-freeing GSList filled with strings 2021-02-11 17:05:32 +01:00
virglibutil.h util: Add helpers for auto-freeing GSList filled with strings 2021-02-11 17:05:32 +01:00
virhash.c util: hash: Add deprecation notices for functions which have g_hash_table replacements 2020-11-06 10:40:56 +01:00
virhash.h util: hash: Retire 'virHashTable' in favor of 'GHashTable' 2020-11-06 10:40:51 +01:00
virhashcode.c Prefer https: everywhere where possible 2020-09-01 21:58:46 +02:00
virhashcode.h Prefer https: everywhere where possible 2020-09-01 21:58:46 +02:00
virhook.c virBuildPath: Remove return value 2021-03-02 09:50:19 +01:00
virhook.h
virhostcpu.c virHostCPUGetStatsLinux: Avoid 'strcpy' 2021-03-05 15:33:34 +01:00
virhostcpu.h domaincapsmock: mock virHostCPUGetMicrocodeVersion() 2020-08-25 19:44:43 +02:00
virhostcpupriv.h
virhostmem.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virhostmem.h
virhostuptime.c virhostuptime: Fix rounding in uptime calculation 2021-02-02 15:00:55 +01:00
virhostuptime.h
viridentity.c
viridentity.h
virinitctl.c
virinitctl.h
viriptables.c util: synchronize with firewalld before we start calling iptables directly 2020-11-24 14:21:58 -05:00
viriptables.h
viriscsi.c
viriscsi.h
virjson.c lib: Use g_steal_pointer() more 2021-03-24 13:57:51 +01:00
virjson.h virJSONValueArrayAppend: Clear pointer when taking ownership of passed value 2021-02-20 13:26:37 +01:00
virkeycode.c Split declarations from initializations 2020-08-25 19:03:11 +02:00
virkeycode.h
virkmod.c
virkmod.h
virlease.c virJSONValueArrayAppend: Clear pointer when taking ownership of passed value 2021-02-20 13:26:37 +01:00
virlease.h
virlockspace.c Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
virlockspace.h
virlog.c lib: Replace virFileMakePath() with g_mkdir_with_parents() 2021-03-04 20:52:23 +01:00
virlog.h util: virlog: unexport virLogVMessage 2020-08-03 15:30:40 +02:00
virmacaddr.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virmacaddr.h
virmacmap.c virJSONValueArrayAppend: Clear pointer when taking ownership of passed value 2021-02-20 13:26:37 +01:00
virmacmap.h util: macmap: Convert to use GSList for storing macs instead of string lists 2021-02-11 17:05:33 +01:00
virmdev.c Use g_steal_pointer where possible 2021-03-01 15:54:42 +01:00
virmdev.h hostdev: mdev: Lookup mdevs by sysfs path rather than mdev struct 2021-01-08 08:10:02 +01:00
virmodule.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virmodule.h
virnetdev.c util: don't log error if SRIOV PF has no associated netdev 2021-03-23 14:56:45 -04:00
virnetdev.h util: add virNetDevGetPhysPortName 2021-01-25 20:27:38 -05:00
virnetdevbandwidth.c lib: Put some variable declarations on individual lines 2021-03-15 09:38:18 +01:00
virnetdevbandwidth.h lib: Put some variable declarations on individual lines 2021-03-15 09:38:18 +01:00
virnetdevbridge.c util: virnetlink: Add wrapper for 'nlmsg_alloc_simple' 2021-03-02 09:50:19 +01:00
virnetdevbridge.h
virnetdevip.c util: virnetlink: Add wrapper for 'nlmsg_alloc_simple' 2021-03-02 09:50:19 +01:00
virnetdevip.h util: remove unused virNetDevIPWaitDadFinish() 2020-09-10 11:47:35 -04:00
virnetdevmacvlan.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virnetdevmacvlan.h netdevmacvlan: Use helper function to create unique macvlan/macvtap name 2020-12-15 13:35:33 -05:00
virnetdevmidonet.c
virnetdevmidonet.h
virnetdevopenvswitch.c util: Remove '\n' from vhostuser ifname 2021-02-05 09:57:14 +01:00
virnetdevopenvswitch.h virnetdevopenvswitch: Try to unescape ovs-vsctl reply in one specific case 2020-12-17 09:27:51 +01:00
virnetdevtap.c util: minor comment/formatting changes to virNetDevTapCreate() 2020-12-16 21:32:07 -05:00
virnetdevtap.h netdevtap: Use common helper function to create unique tap name 2020-12-15 13:35:27 -05:00
virnetdevveth.c util:veth: Create veth device pair by netlink 2020-12-16 14:43:18 -05:00
virnetdevveth.h
virnetdevvlan.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virnetdevvlan.h
virnetdevvportprofile.c util: virnetlink: Add wrapper for 'nlmsg_alloc_simple' 2021-03-02 09:50:19 +01:00
virnetdevvportprofile.h
virnetlink.c Do not check return value of VIR_RESIZE_N 2021-03-22 12:44:18 +01:00
virnetlink.h util: virnetlink: Add wrapper for 'nlmsg_alloc_simple' 2021-03-02 09:50:19 +01:00
virnodesuspend.c
virnodesuspend.h
virnuma.c Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
virnuma.h
virnvme.c util: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virnvme.h
virobject.c util: convert VIR_FREE to g_free in other functions that free their arg 2021-02-12 12:10:38 -05:00
virobject.h
virpci.c virBuildPath: Remove return value 2021-03-02 09:50:19 +01:00
virpci.h virpci.c: use virPCIDeviceAddressPtr in virPCIDeviceListDel() 2021-03-01 12:25:33 -03:00
virperf.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virperf.h
virpidfile.c lib: Replace virFileMakePath() with g_mkdir_with_parents() 2021-03-04 20:52:23 +01:00
virpidfile.h
virpolkit.c virPolkitCheckAuth: Avoid virStringListLength in loop condition 2021-02-11 17:05:34 +01:00
virpolkit.h
virportallocator.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virportallocator.h
virprobe.h
virprocess.c Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
virprocess.h tests: Mock virProcessGetMaxMemLock() 2021-03-08 22:41:40 +01:00
virqemu.c qemu: command: Use JSON for QAPIfied -object directly 2021-03-23 14:06:31 +01:00
virqemu.h qemu: command: Use JSON for QAPIfied -object directly 2021-03-23 14:06:31 +01:00
virrandom.c internal.h: Introduce and use VIR_IS_POW2() 2020-12-04 16:24:19 +01:00
virrandom.h
virresctrl.c Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
virresctrl.h util: sync variable names between header and C files 2020-08-03 15:19:29 +02:00
virresctrlpriv.h
virrotatingfile.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virrotatingfile.h
virscsi.c Remove useless comments for VIR_FROM_THIS definition 2021-03-02 09:50:19 +01:00
virscsi.h
virscsihost.c util: quieten virSCSIHostGetUniqueId 2020-11-06 15:03:39 +01:00
virscsihost.h
virscsivhost.c Remove useless comments for VIR_FROM_THIS definition 2021-03-02 09:50:19 +01:00
virscsivhost.h
virseclabel.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virseclabel.h
virsecret.c virSecretLookupParseSecret: Use g_steal_pointer 2021-01-08 09:18:21 +01:00
virsecret.h
virsecureerase.c util: virsecureerase: Introduce virSecureEraseString 2021-02-03 13:07:13 +01:00
virsecureerase.h util: virsecureerase: Introduce virSecureEraseString 2021-02-03 13:07:13 +01:00
virsocket.c util: Fix file descriptor passing on 64-bit FreeBSD and NetBSD. 2021-02-17 10:15:33 +00:00
virsocket.h
virsocketaddr.c util: replace VIR_FREE with g_free in all vir*Free() functions 2021-02-05 00:20:43 -05:00
virsocketaddr.h util: sync variable names between header and C files 2020-08-03 15:19:29 +02:00
virstoragefile.c util: Remove unused 'virStorageFileParseChainIndex' 2021-01-27 07:49:58 +01:00
virstoragefile.h util: Remove unused 'virStorageFileParseChainIndex' 2021-01-27 07:49:58 +01:00
virstring.c Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
virstring.h util: virstring: Remove virStrncpy 2021-03-12 10:57:42 +01:00
virsysinfo.c Do not check return value of VIR_REALLOC_N 2021-03-22 12:44:18 +01:00
virsysinfo.h virsysinfo: Define and use auto cleanup func for virSysinfoDef properly 2021-03-15 09:34:18 +01:00
virsysinfopriv.h
virsystemd.c Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
virsystemd.h virsystemd: introduce virSystemdGetMachineUnitByPID 2021-02-10 13:37:11 +01:00
virsystemdpriv.h
virthread.c util: Use glib memory functions in virThreadCreateFull 2020-09-11 18:19:58 +02:00
virthread.h
virthreadjob.c
virthreadjob.h
virthreadpool.c Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
virthreadpool.h util: remove unused virThreadPoolNew macro 2020-09-07 09:34:00 +03:00
virtime.c util: o-z: use g_new0 2020-10-06 12:31:34 +02:00
virtime.h
virtpm.c virtpm: Fix @path handling in virTPMEmulatorInit() 2021-03-02 09:49:23 +01:00
virtpm.h
virtypedparam-public.c Do not check return value of VIR_RESIZE_N 2021-03-22 12:44:18 +01:00
virtypedparam.c Do not check return value of VIR_EXPAND_N 2021-03-22 12:44:18 +01:00
virtypedparam.h
viruri.c Do not check return value of VIR_RESIZE_N 2021-03-22 12:44:18 +01:00
viruri.h peer2peer migration: allow connecting to local sockets 2020-09-04 10:20:49 +02:00
virusb.c util: replace VIR_FREE with g_free in all *Dispose() functions 2021-02-05 00:22:09 -05:00
virusb.h
virutil.c Do not check return value of VIR_RESIZE_N 2021-03-22 12:44:18 +01:00
virutil.h virIndexToDiskName: Make 'idx' unsigned and remove check 2021-03-05 15:33:34 +01:00
viruuid.c viruuid: Rework virUUIDIsValid() 2020-12-04 16:24:19 +01:00
viruuid.h viruuid: Rework virUUIDIsValid() 2020-12-04 16:24:19 +01:00
virvhba.c remove unnecessary cleanup labels and unused return variables 2020-11-02 22:01:36 -05:00
virvhba.h
virvsock.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virvsock.h
virxdrdefs.h
virxml.c virxml: Fix possible memory leak in virXMLNodeContentString() 2021-03-18 12:45:05 +01:00
virxml.h util: xml: Add wrapper for 'xmlNewNode' 2021-03-02 09:50:19 +01:00