summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-06-17 15:46:24 +0800
committerPeng Wu <alexepico@gmail.com>2013-06-17 15:46:24 +0800
commit5049635bc3b6c1e261c57774e79345876644dfa2 (patch)
tree1f25cfff2b8489b5072eb924124d917d174a236e /tests
parent77d9412336783469b7cebd37188f644e51f1a5df (diff)
downloadlibpinyin-5049635bc3b6c1e261c57774e79345876644dfa2.tar.gz
libpinyin-5049635bc3b6c1e261c57774e79345876644dfa2.tar.xz
libpinyin-5049635bc3b6c1e261c57774e79345876644dfa2.zip
fixes memory leaks
Diffstat (limited to 'tests')
-rw-r--r--tests/tests_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/tests_helper.h b/tests/tests_helper.h
index 4f0869f..431dbc8 100644
--- a/tests/tests_helper.h
+++ b/tests/tests_helper.h
@@ -39,6 +39,7 @@ static bool load_phrase_index(const pinyin_table_info_t * phrase_files,
bool retval = chunk->load(filename);
if (!retval) {
fprintf(stderr, "open %s failed!\n", binfile);
+ delete chunk;
return false;
}