[PATCH 0/4] virIdentity: Don't leak params in virGetConnectGeneric and refactor

Peter Krempa pkrempa at redhat.com
Wed May 18 09:22:09 UTC 2022


Fix a memleak and make the code a bit neater.

Peter Krempa (4):
  util: typedparam: Introduce virTypedParamListFromParams
  virGetConnectGeneric: Fix memleak of 'identparams' when connecting
    between split daemons
  virIdentityGetParameters: Return 'virTypedParamList'
  doRemoteOpen: Refactor control flow

 src/driver.c                        |  8 +++----
 src/libvirt_private.syms            |  1 +
 src/remote/remote_daemon_dispatch.c | 36 ++++++++++++-----------------
 src/util/viridentity.c              | 15 ++++--------
 src/util/viridentity.h              |  5 ++--
 src/util/virtypedparam.c            | 13 +++++++++++
 src/util/virtypedparam.h            |  4 ++++
 7 files changed, 44 insertions(+), 38 deletions(-)

-- 
2.35.3



More information about the libvir-list mailing list