{
OCEntityHandlerResult eh_result = OC_EH_ERROR;
static pthread_t h_thread_abort = NULL;
-// static pthread_t h_thread_abort[4] = {NULL, };
THINGS_LOG_V(THINGS_DEBUG, TAG, "==> ABORT Easy Setup : %d", abort_es);
case ABORT_BEFORE_DATA_PROVISIONING: // After Security Confirm
THINGS_LOG_V(THINGS_DEBUG, TAG, "Forwarding abort-level to st_things App.(Level: %d)", abort_es);
eh_result = things_abort(&h_thread_abort, abort_es);
-// eh_result = things_abort(&h_thread_abort[abort_es], abort_es);
break;
default:
THINGS_LOG_D(THINGS_DEBUG, TAG, "abort_es = %d, So, Don't need any-process", abort_es);
THINGS_LOG_V_ERROR(THINGS_ERROR, TAG, "Failed to create thread");
h_thread_things_reset = 0;
things_free(args);
- args = NULL;
b_thread_things_reset = false;
res = -1;
goto GOTO_OUT;
{
THINGS_LOG_V_ERROR(THINGS_ERROR, TAG, "Create thread is failed.(for abort Thread)");
*h_thread_abort = 0;
+ things_free(ARGs);
+ pthread_detach(h_thread_abort);
eh_result = OC_EH_ERROR;
}
} else {
eh_result = OC_EH_NOT_ACCEPTABLE;
}
- pthread_detach(h_thread_abort);
return eh_result;
}