未验证 提交 c1d5d3cd 编写于 作者: wafwerar's avatar wafwerar 提交者: GitHub

Merge pull request #11600 from taosdata/fix/ZhiqiangWang/TD-13756-getline-memory-free-error

fix(os): getline memory free error.
......@@ -772,6 +772,9 @@ int64_t taosGetLineFile(TdFilePtr pFile, char **__restrict ptrBuf) {
if (pFile == NULL) {
return -1;
}
if (*ptrBuf != NULL) {
taosMemoryFreeClear(*ptrBuf);
}
assert(pFile->fp != NULL);
size_t len = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册