提交 6a0900bf 编写于 作者: A Adam Buchbinder 提交者: Android (Google) Code Review

Merge "Fix a leaked file in HyphTool.cpp."

......@@ -24,6 +24,7 @@ Hyphenator* loadHybFile(const char* fn) {
}
uint8_t* buf = new uint8_t[size];
size_t read_size = fread(buf, 1, size, f);
fclose(f);
if (read_size < size) {
fprintf(stderr, "error reading %s\n", fn);
delete[] buf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册