提交 5bc161bb 编写于 作者: sangshuduo's avatar sangshuduo

fix issue that opened file handler remains after return

上级 ed546750
......@@ -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.
先完成此消息的编辑!
想要评论请 注册