hal-api: common: fix the error handling path 87/285887/1 accepted/tizen/unified/20230105.154657 accepted/tizen/unified/20230425.063950
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 22 Dec 2022 03:22:54 +0000 (12:22 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 22 Dec 2022 06:03:43 +0000 (15:03 +0900)
commite4b9e661e0e318a2794034ef24e1b0295c59e882
treedfdc965d86ec47b8ad5776af1c19441cc3eeb567
parentc1a19d673aaf1f73e5cb339661d8376000cbdac8
hal-api: common: fix the error handling path

Before calling hal_api_conf_exit(), it needs to call close_backend().
Otherwise, hal_api_conf_exit will call free(info) before info->backend/handle.

Change-Id: If9b3b66d3bb7c9e5d92ebd565815c13bde4babdb
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
src/hal-api-common.c