[PATCH 0/6] util: alloc: Remove VIR_ALLOC_VAR

Peter Krempa pkrempa at redhat.com
Wed Feb 3 13:34:20 UTC 2021


One user was reimplemented using a more common approach, two users use a
constant size so were reimplemented using g_malloc + sizeof.

Peter Krempa (6):
  virNWFilterVarCombIter: Allocate 'iter' member separately
  virLockManagerSanlockAddLease: Refactor cleanup
  virLockManagerSanlockAddDisk: Refactor cleanup
  locking: sanlock: Avoid use of VIR_ALLOC_VAR for 'struct
    sanlk_resource'
  virNetDevGetEthtoolGFeatures: Avoid use of VIR_ALLOC_VAR
  viralloc: Remove VIR_ALLOC_VAR

 src/conf/nwfilter_params.c        |  6 ++--
 src/conf/nwfilter_params.h        |  2 +-
 src/libvirt_private.syms          |  1 -
 src/locking/lock_driver_sanlock.c | 50 +++++++++++--------------------
 src/util/viralloc.c               | 33 --------------------
 src/util/viralloc.h               | 35 ----------------------
 src/util/virnetdev.c              |  5 ++--
 7 files changed, 24 insertions(+), 108 deletions(-)

-- 
2.29.2




More information about the libvir-list mailing list