[Groonga-mysql-commit] mroonga/mroonga at 849163f [master] Fix free order

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 16 22:22:22 JST 2015


Kouhei Sutou	2015-06-16 22:22:22 +0900 (Tue, 16 Jun 2015)

  New Revision: 849163f57bab947d0ea99851348c7567a9fe50b4
  https://github.com/mroonga/mroonga/commit/849163f57bab947d0ea99851348c7567a9fe50b4

  Message:
    Fix free order
    
    MRN_SHARE depends on TABLE_SHARE.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2015-06-16 22:15:16 +0900 (f2b72df)
+++ ha_mroonga.cpp    2015-06-16 22:22:22 +0900 (c391168)
@@ -12838,10 +12838,10 @@ int ha_mroonga::rename_table(const char *from, const char *to)
     mrn_free_long_term_share(tmp_share->long_term_share);
     tmp_share->long_term_share = NULL;
   }
+  mrn_free_share(tmp_share);
   mrn_open_mutex_lock(NULL);
   mrn_free_tmp_table_share(tmp_table_share);
   mrn_open_mutex_unlock(NULL);
-  mrn_free_share(tmp_share);
 
   DBUG_RETURN(error);
 }
-------------- next part --------------
HTML����������������������������...
Download 



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