libxl: fix memory leak in libxl__colo_save_setup
authorOleksandr Grytsov <oleksandr_grytsov@epam.com>
Tue, 12 Sep 2017 13:31:58 +0000 (16:31 +0300)
committerWei Liu <wei.liu2@citrix.com>
Wed, 13 Sep 2017 08:40:57 +0000 (09:40 +0100)
commita23173381bed1ab35025605a9794b937992a8b95
treeaac7142a378ff94da6ed9097b534437cdb7a47d2
parentcac1f06061486f0aca22061468b50ae1ee99ac0c
libxl: fix memory leak in libxl__colo_save_setup

Getting nic list in case userspace proxy is called
without freeing. The fix is to use cds->nics to
keep nic list. cds->nics will be freed in
devices_teardown_cb.

Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_colo_save.c