Kouhei Sutou
null+****@clear*****
Wed Jun 17 21:44:16 JST 2015
Kouhei Sutou 2015-06-17 21:44:16 +0900 (Wed, 17 Jun 2015) New Revision: 21ec9d82071125b08706192d8648ba933fe34eba https://github.com/mroonga/mroonga/commit/21ec9d82071125b08706192d8648ba933fe34eba Message: Add missing free code on error Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+6 -0) =================================================================== --- ha_mroonga.cpp 2015-06-17 10:02:47 +0900 (ea807fd) +++ ha_mroonga.cpp 2015-06-17 21:44:16 +0900 (37ca355) @@ -2856,6 +2856,12 @@ int ha_mroonga::wrapper_create(const char *name, TABLE *table, MRN_SET_BASE_SHARE_KEY(tmp_share, table->s); MRN_SET_BASE_TABLE_KEY(this, table); share = NULL; + if (wrap_key_info) + { + my_free(wrap_key_info); + wrap_key_info = NULL; + } + base_key_info = NULL; error = MRN_GET_ERROR_NUMBER; DBUG_RETURN(error); } -------------- next part -------------- HTML����������������������������... Descargar