提交 d0c37df8 编写于 作者: S slguan

Change the free function to tfree

上级 e28077b6
...@@ -199,7 +199,7 @@ static void taosProcessTcpData(void *param) { ...@@ -199,7 +199,7 @@ static void taosProcessTcpData(void *param) {
if (headLen != sizeof(STaosHeader)) { if (headLen != sizeof(STaosHeader)) {
tError("%s read error, headLen:%d", pThreadObj->label, headLen); tError("%s read error, headLen:%d", pThreadObj->label, headLen);
taosCleanUpFdObj(pFdObj); taosCleanUpFdObj(pFdObj);
free(buffer); tfree(buffer);
continue; continue;
} }
...@@ -215,7 +215,7 @@ static void taosProcessTcpData(void *param) { ...@@ -215,7 +215,7 @@ static void taosProcessTcpData(void *param) {
if (leftLen != retLen) { if (leftLen != retLen) {
tError("%s read error, leftLen:%d retLen:%d", pThreadObj->label, leftLen, retLen); tError("%s read error, leftLen:%d retLen:%d", pThreadObj->label, leftLen, retLen);
taosCleanUpFdObj(pFdObj); taosCleanUpFdObj(pFdObj);
free(buffer); tfree(buffer);
continue; continue;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册