diff options
author | Peng Wu <alexepico@gmail.com> | 2012-10-09 13:33:38 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-10-09 13:33:38 +0800 |
commit | cf9791cfcce72347ac97c8766501fbaf1f8920b5 (patch) | |
tree | f88116894a2ff2f583d3606098bf77871ce67309 /tests/storage | |
parent | 7a14c960194f3b417d06fb85267591fad0fb1b87 (diff) | |
download | libpinyin-cf9791cfcce72347ac97c8766501fbaf1f8920b5.tar.gz libpinyin-cf9791cfcce72347ac97c8766501fbaf1f8920b5.tar.xz libpinyin-cf9791cfcce72347ac97c8766501fbaf1f8920b5.zip |
fixes memory leak in test_ngram
Diffstat (limited to 'tests/storage')
-rw-r--r-- | tests/storage/test_ngram.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/storage/test_ngram.cpp b/tests/storage/test_ngram.cpp index b3c6b67..008f96a 100644 --- a/tests/storage/test_ngram.cpp +++ b/tests/storage/test_ngram.cpp @@ -78,5 +78,7 @@ int main(int argc, char * argv[]){ assert(bigram.load_db("/tmp/test.db")); assert(bigram.save_db("/tmp/test.db")); + g_array_free(items, TRUE); + return 0; } |