diff options
author | Peng Wu <alexepico@gmail.com> | 2013-06-17 16:01:46 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-06-17 16:01:46 +0800 |
commit | a6879516feb3e906ba1d0ed7847300bcfee7e092 (patch) | |
tree | 765c799b8996c190925c93d17c1ef73556cab9f2 /utils/utils_helper.h | |
parent | 5049635bc3b6c1e261c57774e79345876644dfa2 (diff) | |
download | libpinyin-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.h | 1 |
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; } |