Kouhei Sutou
null+****@clear*****
Fri Aug 10 18:40:23 JST 2018
Kouhei Sutou 2018-08-10 18:40:23 +0900 (Fri, 10 Aug 2018) New Revision: d717f0361a3367e05c96c63ca6d8e40416bc50a9 https://github.com/mroonga/mroonga/commit/d717f0361a3367e05c96c63ca6d8e40416bc50a9 Message: mysql8 wrapper: use mrn_destroy() instead of raw delete Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+4 -4) =================================================================== --- ha_mroonga.cpp 2018-08-10 18:38:41 +0900 (753416a1) +++ ha_mroonga.cpp 2018-08-10 18:40:23 +0900 (1c5aa998) @@ -5515,7 +5515,7 @@ int ha_mroonga::wrapper_delete_table(const char *name, #else error = hnd->ha_delete_table(name); #endif - delete hnd; + mrn_destroy(hnd); DBUG_RETURN(error); } @@ -13054,7 +13054,7 @@ handler *ha_mroonga::wrapper_clone(const char *name, MEM_ROOT *mem_root) #endif if (error != 0) { - delete cloned_handler; + mrn_destroy(cloned_handler); DBUG_RETURN(NULL); } DBUG_RETURN(cloned_handler); @@ -14373,14 +14373,14 @@ int ha_mroonga::wrapper_rename_table(const char *from, const char *to, if (error != 0) { - delete hnd; + mrn_destroy(hnd); DBUG_RETURN(error); } error = wrapper_rename_index(from, to, tmp_share, from_table_name, to_table_name); - delete hnd; + mrn_destroy(hnd); DBUG_RETURN(error); } -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20180810/0e38d5e8/attachment-0001.htm