mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-14 07:04:43 -05:00
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.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
# include "virerror.h"
|
||||
# include "virthread.h"
|
||||
# include "virnetdevbandwidth.h"
|
||||
# include "virstring.h"
|
||||
|
||||
# define VSH_MAX_XML_FILE (10*1024*1024)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user