[libvirt] [PATCH 0/3] Clean up usage of vshStringToArray

Peter Krempa pkrempa at redhat.com
Tue Aug 20 09:05:05 UTC 2013


Usage of vshStringToArray in virsh was problematic in a few places.
Clean it up to avoid a few memleaks. Also improve an error message.


Peter Krempa (3):
  virsh: modify vshStringToArray to duplicate the elements too
  virsh-pool: Improve error message in cmdPoolList
  virsh: Don't leak list of volumes when undefining domain with storage

 tools/virsh-domain.c   | 121 ++++++++++++++++++++++++-------------------------
 tools/virsh-nodedev.c  |  18 ++------
 tools/virsh-pool.c     |  12 ++---
 tools/virsh-snapshot.c |  10 +---
 tools/virsh.c          |   8 ++--
 tools/virsh.h          |   1 +
 6 files changed, 76 insertions(+), 94 deletions(-)

-- 
1.8.3.2




More information about the libvir-list mailing list