]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: modify vshStringToArray to duplicate the elements too
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Aug 2013 16:20:05 +0000 (18:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 20 Aug 2013 15:53:49 +0000 (17:53 +0200)
commitd64af6ce3cce0d353238086c4e1ec0fd59217cf0
tree45408d0e0dfa38a22f144d9131e3ed613019b8ee
parenta7f94a40bb2554c56d0c6bea98a5843690dc3933
virsh: modify vshStringToArray to duplicate the elements too

At a slightly larger memory expense allow stealing of items from the
string array returned from vshStringToArray and turn the result into a
string list compatible with virStringSplit. This will allow to use the
common dealloc function.

This patch also fixes a few forgotten checks of return from
vshStringToArray and one memory leak.
tools/virsh-nodedev.c
tools/virsh-pool.c
tools/virsh-snapshot.c
tools/virsh.c
tools/virsh.h