qga: make split_list() return allocated strings
commit4bca81ceedb59397f6082777f6ed4b39d456be85
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 26 Aug 2015 23:34:50 +0000 (27 01:34 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 1 Sep 2015 16:07:10 +0000 (1 11:07 -0500)
tree675ba43edd7da179ff0e3ae15748cc4b2975fb1f
parent23b42894b389eccb45ab66da3a3e77d3a8cfc2b6
qga: make split_list() return allocated strings

In order to avoid any confusion, let's allocate new strings when
splitting.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c
qga/commands-win32.c
qga/main.c