Navigation Menu

Skip to content

Commit

Permalink
Fix a memory leak on fast order limit with multiple match against
Browse files Browse the repository at this point in the history
[groonga-dev,03496]

Reported by Gosuke Yasufuku. Thanks!!!
  • Loading branch information
kou committed Sep 14, 2015
1 parent 9b8fd88 commit 49d9d43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ha_mroonga.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 49d9d43

Please sign in to comment.