[Groonga-mysql-commit] mroonga/mroonga at 6f6a1bf [master] fix memory leak at initializing Mroonga

Back to archive index

Kentoku SHIBA null+****@clear*****
Tue Oct 21 05:16:05 JST 2014


Kentoku SHIBA	2014-10-21 05:16:05 +0900 (Tue, 21 Oct 2014)

  New Revision: 6f6a1bf27cc77f4e73b6619ef263c78c0a0eee91
  https://github.com/mroonga/mroonga/commit/6f6a1bf27cc77f4e73b6619ef263c78c0a0eee91

  Message:
    fix memory leak at initializing Mroonga

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -0)
===================================================================
--- ha_mroonga.cpp    2014-10-20 23:38:16 +0900 (e471dae)
+++ ha_mroonga.cpp    2014-10-21 05:16:05 +0900 (8b9a08b)
@@ -1404,6 +1404,7 @@ err_allocated_thds_mutex_init:
 err_db_manager_init:
   delete mrn_db_manager;
   grn_ctx_fin(&mrn_db_manager_ctx);
+  grn_obj_unlink(ctx, mrn_db);
 err_db_create:
   if (mrn_log_file_opened) {
     fclose(mrn_log_file);
@@ -1457,6 +1458,7 @@ static int mrn_deinit(void *p)
   delete mrn_db_manager;
   grn_ctx_fin(&mrn_db_manager_ctx);
 
+  grn_obj_unlink(ctx, mrn_db);
   grn_ctx_fin(ctx);
   grn_fin();
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-mysql-commit mailing list
Back to archive index