projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a14c96
)
fixes memory leak in test_ngram
author
Peng Wu
<alexepico@gmail.com>
Tue, 9 Oct 2012 05:33:38 +0000
(13:33 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Tue, 9 Oct 2012 05:33:38 +0000
(13:33 +0800)
tests/storage/test_ngram.cpp
patch
|
blob
|
history
diff --git
a/tests/storage/test_ngram.cpp
b/tests/storage/test_ngram.cpp
index
b3c6b67
..
008f96a
100644
(file)
--- 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;
}