[libvirt] [PATCH 0/7] Introduce automatic clearing for virBuffer

Peter Krempa pkrempa at redhat.com
Thu Feb 21 15:50:13 UTC 2019


First 4 patches clean up existing mess.

Note that this series both fixes and then deletes virBufferEscapeN.
The split is deliberate, so that if somebody needs virBufferEscapeN
in the future they can revert the removal and get a working version.

Peter Krempa (7):
  util: buffer: Remove misleading AUTOPTR func for 'virBuffer'
  util: buf: Fix memory leak in virBufferEscapeN
  tests: buf: Fix debug messages in 'testBufEscapeRegex'
  util: buf: Remove virBufferEscapeN
  util: alloc: Introduce 'VIR_AUTOCLEAN' macros for clearing stack'd
    structs
  util: buffer: Introduce VIR_AUTOCLEAN function for virBuffer
  qemu: domain: Use VIR_AUTOCLEAN for virBuffer

 src/libvirt_private.syms |   1 -
 src/qemu/qemu_domain.c   |  27 +++-------
 src/util/viralloc.h      |  32 +++++++++++-
 src/util/virbuffer.c     | 107 ---------------------------------------
 src/util/virbuffer.h     |   7 ++-
 tests/virbuftest.c       |  57 +++++----------------
 6 files changed, 56 insertions(+), 175 deletions(-)

-- 
2.20.1




More information about the libvir-list mailing list