[libvirt PATCH 0/2] lxc: remove most use of libvirt allocation APIs

Daniel P. Berrangé berrange at redhat.com
Wed May 13 16:22:39 UTC 2020


This removes VIR_ALLOC / VIR_FREE and friends, but not
the VIR_*_ELEMENT API usage.

Daniel P. Berrangé (2):
  lxc: replace VIR_FREE with g_autofree / g_free
  lxc: replace VIR_ALLOC/REALLOC with g_new0/renew

 src/lxc/lxc_cgroup.c     |  15 +--
 src/lxc/lxc_conf.c       |  19 ++-
 src/lxc/lxc_container.c  | 262 ++++++++++++++-------------------------
 src/lxc/lxc_controller.c | 148 ++++++++--------------
 src/lxc/lxc_domain.c     |  40 +++---
 src/lxc/lxc_driver.c     |  89 ++++++-------
 src/lxc/lxc_fuse.c       |  14 +--
 src/lxc/lxc_fuse.h       |   1 +
 src/lxc/lxc_hostdev.c    |   1 -
 src/lxc/lxc_monitor.c    |   9 +-
 src/lxc/lxc_native.c     |  81 ++++++------
 src/lxc/lxc_process.c    | 135 ++++++++------------
 12 files changed, 306 insertions(+), 508 deletions(-)

-- 
2.24.1




More information about the libvir-list mailing list