提交 6a24d82b 编写于 作者: S Shengliang Guan

minor changes

上级 80a7549c
......@@ -152,9 +152,9 @@ static int32_t sdbReadDataFile() {
code = 0;
PARSE_SDB_DATA_ERROR:
tfree(line);
fclose(fp);
cJSON_Delete(root);
if (line) free(line);
if (fp) fclose(fp);
if (root) cJSON_Delete(root);
return code;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册