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>
(cherry picked from commit
e4b9e661e0e318a2794034ef24e1b0295c59e882)
return 0;
err_dlclose:
- _hal_api_conf_exit();
__close_backend(info);
+ _hal_api_conf_exit();
err:
G_UNLOCK(hal_common_lock);
return ret;