[libvirt] [PATCHv2 1/3] virsh: modify vshStringToArray to duplicate the elements too
Osier Yang
jyang at redhat.com
Tue Aug 20 15:39:35 UTC 2013
On 20/08/13 22:15, Peter Krempa wrote:
> 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.
> ---
>
> Notes:
> Version 2:
> * tweaked comment of vshStringToArray to mention deallocation of the returned array
ACK
More information about the libvir-list
mailing list