fixed memory leakage on client connection

This commit is contained in:
Agus Purwanto 2017-05-17 12:27:42 +09:00
parent f7f7372aad
commit 1ae0039fc9

View file

@ -880,7 +880,7 @@ void fATPC(void *arg){
clientnode->addr = ntohl(addr.s_addr); clientnode->addr = ntohl(addr.s_addr);
clientnode->local_port = local_port; clientnode->local_port = local_port;
if(xTaskCreate(client_start_task, ((const char*)"client_start_task"), ATCP_STACK_SIZE, clientnode, ATCMD_LWIP_TASK_PRIORITY, NULL) != pdPASS) if(xTaskCreate(client_start_task, ((const char*)"client_start_task"), ATCP_STACK_SIZE, clientnode, ATCMD_LWIP_TASK_PRIORITY, &clientnode->handletask) != pdPASS)
{ {
AT_DBG_MSG(AT_FLAG_LWIP, AT_DBG_ERROR, AT_DBG_MSG(AT_FLAG_LWIP, AT_DBG_ERROR,
"[ATPC] ERROR: Create tcp/udp client task failed."); "[ATPC] ERROR: Create tcp/udp client task failed.");