summaryrefslogtreecommitdiffstats
path: root/utils/utils_helper.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-06-17 16:01:46 +0800
committerPeng Wu <alexepico@gmail.com>2013-06-17 16:01:46 +0800
commita6879516feb3e906ba1d0ed7847300bcfee7e092 (patch)
tree765c799b8996c190925c93d17c1ef73556cab9f2 /utils/utils_helper.h
parent5049635bc3b6c1e261c57774e79345876644dfa2 (diff)
downloadlibpinyin-a6879516feb3e906ba1d0ed7847300bcfee7e092.tar.gz
libpinyin-a6879516feb3e906ba1d0ed7847300bcfee7e092.tar.xz
libpinyin-a6879516feb3e906ba1d0ed7847300bcfee7e092.zip
fixes memory leaks
Diffstat (limited to 'utils/utils_helper.h')
-rw-r--r--utils/utils_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/utils_helper.h b/utils/utils_helper.h
index 86d5849..b91067b 100644
--- a/utils/utils_helper.h
+++ b/utils/utils_helper.h
@@ -85,6 +85,7 @@ static bool load_phrase_index(const pinyin_table_info_t * phrase_files,
bool retval = chunk->load(binfile);
if (!retval) {
fprintf(stderr, "load %s failed!\n", binfile);
+ delete chunk;
return false;
}