From 1ae0039fc9b773acf07103542439974cdd502a3b Mon Sep 17 00:00:00 2001 From: Agus Purwanto Date: Wed, 17 May 2017 12:27:42 +0900 Subject: [PATCH] fixed memory leakage on client connection --- component/common/api/at_cmd/atcmd_lwip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/common/api/at_cmd/atcmd_lwip.c b/component/common/api/at_cmd/atcmd_lwip.c index 78ac1f1..46d475e 100644 --- a/component/common/api/at_cmd/atcmd_lwip.c +++ b/component/common/api/at_cmd/atcmd_lwip.c @@ -880,7 +880,7 @@ void fATPC(void *arg){ clientnode->addr = ntohl(addr.s_addr); 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, "[ATPC] ERROR: Create tcp/udp client task failed.");