Kouhei Sutou
null+****@clear*****
Mon Sep 14 15:09:33 JST 2015
Kouhei Sutou 2015-09-14 15:09:33 +0900 (Mon, 14 Sep 2015) New Revision: 49d9d43466fd808a2d7cd6fb892d8057ebf5f252 https://github.com/mroonga/mroonga/commit/49d9d43466fd808a2d7cd6fb892d8057ebf5f252 Message: Fix a memory leak on fast order limit with multiple match against [groonga-dev,03496] Reported by Gosuke Yasufuku. Thanks!!! Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+3 -0) =================================================================== --- ha_mroonga.cpp 2015-09-14 15:02:42 +0900 (5920ca1) +++ ha_mroonga.cpp 2015-09-14 15:09:33 +0900 (27b236e) @@ -8165,6 +8165,9 @@ FT_INFO *ha_mroonga::generic_ft_init_ext(uint flags, uint key_nr, String *key) GRN_LOG(ctx, GRN_LOG_ERROR, "%s", error_message); } if (fast_order_limit) { + if (sorted_result) { + grn_obj_close(ctx, sorted_result); + } sorted_result = grn_table_create(ctx, NULL, 0, NULL, GRN_OBJ_TABLE_NO_KEY, NULL, -------------- next part -------------- HTML����������������������������... 다운로드