
When x_psoc_create_handle return failed, need free all resources before return, x_psoc_destroy_handler has no chance to be called any more. Change-Id: I4b9999dbc2597c4ea860f08a6f3334f7f5728146 CRs-Fixed: 2353795
When x_psoc_create_handle return failed, need free all resources before return, x_psoc_destroy_handler has no chance to be called any more. Change-Id: I4b9999dbc2597c4ea860f08a6f3334f7f5728146 CRs-Fixed: 2353795