fixes memory leak in test_ngram
authorPeng Wu <alexepico@gmail.com>
Tue, 9 Oct 2012 05:33:38 +0000 (13:33 +0800)
committerPeng Wu <alexepico@gmail.com>
Tue, 9 Oct 2012 05:33:38 +0000 (13:33 +0800)
tests/storage/test_ngram.cpp

index b3c6b67..008f96a 100644 (file)
@@ -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;
 }