Change the free function to tfree

This commit is contained in:
slguan 2019-07-13 10:15:40 +08:00
parent e28077b677
commit d0c37df8bb
1 changed files with 2 additions and 2 deletions

View File

@ -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) {
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;
} }