[libvirt] [PATCHv2 3/3] virsh: Don't leak list of volumes when undefining domain with storage

2013-08-20 Thread Peter Krempa
Use the new semantics of vshStringToArray to avoid leaking the array of volumes to be deleted. The array would be leaked in case the first volume was found in the domain definition. Also refactor the code a bit to sanitize naming of variables hoding arrays and dimensions of the arrays. Resolves:

Re: [libvirt] [PATCHv2 3/3] virsh: Don't leak list of volumes when undefining domain with storage

2013-08-20 Thread Osier Yang
On 20/08/13 22:15, Peter Krempa wrote: Use the new semantics of vshStringToArray to avoid leaking the array of volumes to be deleted. The array would be leaked in case the first volume was found in the domain definition. Also refactor the code a bit to sanitize naming of variables hoding arrays