未验证 提交 4693a394 编写于 作者: S slguan 提交者: GitHub

Merge pull request #1334 from sangshuduo/fix-file-handler-remains-on-return

Fix file handler remains on return
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/21a1f6997f3449d08b01a0514e3dc8ee)](https://app.codacy.com/manual/sangshuduo/TDengine?utm_source=github.com&utm_medium=referral&utm_content=sangshuduo/TDengine&utm_campaign=Badge_Grade_Dashboard)
[![TDengine](TDenginelogo.png)](https://www.taosdata.com)
# What is TDengine?
......
......@@ -204,6 +204,7 @@ int vnodeSaveAllMeterObjToFile(int vnode) {
buffer = (char *)malloc(tsMeterSizeOnFile);
if (buffer == NULL) {
dError("Failed to allocate memory while saving all meter objects to file");
fclose(fp);
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册