tools: acrnctl: Free vmmngr list after vm ops done

vmmngr_struct entry is allocated in get_vm_list. we should free it after vm ops done.

Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
Reviewed-by: Yan, Like <like.yan@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Kaige Fu
2018-05-31 10:01:35 +08:00
committed by lijinxia
parent 2da5e7c16a
commit 3000edc6ad
3 changed files with 22 additions and 7 deletions

View File

@@ -34,6 +34,11 @@ static const char *state_str[] = {
*/
void get_vm_list(void);
/**
* @brief free all vmmngr_struct allocated by get_vm_list
*/
void put_vm_list(void);
/**
* @brief search vm indentified by vm from vmmngr_head
*