[Groonga-commit] groonga/groonga [master] close database.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 3月 13日 (日) 19:25:16 JST


Kouhei Sutou	2011-03-13 10:25:16 +0000 (Sun, 13 Mar 2011)

  New Revision: f08f4ad7a36eb1bbde8d2734d093aef503c3f6ff

  Log:
    close database.

  Modified files:
    test/unit/core/test-patricia-trie.c

  Modified: test/unit/core/test-patricia-trie.c (+3 -0)
===================================================================
--- test/unit/core/test-patricia-trie.c    2011-03-13 10:16:29 +0000 (d7c1194)
+++ test/unit/core/test-patricia-trie.c    2011-03-13 10:25:16 +0000 (6307ca7)
@@ -59,6 +59,7 @@ cut_setup(void)
   ids = NULL;
   expected_keys = NULL;
   actual_keys = NULL;
+  database = NULL;
 }
 
 static void
@@ -77,6 +78,8 @@ cut_teardown(void)
     gcut_list_string_free(expected_keys);
   if (actual_keys)
     gcut_list_string_free(actual_keys);
+  if (database)
+    grn_obj_close(context, database);
   teardown_trie_common();
 }
 




Groonga-commit メーリングリストの案内
Back to archive index