Allocate memory for output command list handle 38/261538/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 20 Jul 2021 09:34:00 +0000 (18:34 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 21 Jul 2021 02:19:31 +0000 (11:19 +0900)
commite06a52a1f77dfefe9ef7b99f058cba4595ac07c3
tree4a7a815a0e8737e521fbff0a6cc5adec0a89839c
parent2480ccacdb0b956be2fe64dc855ed4f18b0317f9
Allocate memory for output command list handle

'vc_get_system_command_list()' should return system command list with memory for handle for this
list. However previous code does not allocate memory.

This patch allocates new memory for output command list handle. System commands would be included
this new handle.
And also, this patch fixes the description of 'vc_get_system_command_list()' to deallocate memory
using 'vc_cmd_list_destroy()'.

Change-Id: Ie9d474d2115681b27c7f51f4da3f5487e7109eca
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/vc.c
include/voice_control.h