Navigation Menu

Skip to content

Commit

Permalink
[storage] Fix a memory leak
Browse files Browse the repository at this point in the history
Wrong free function is used... :<
  • Loading branch information
kou committed Mar 1, 2012
1 parent 317d2ae commit e9e6723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -5374,7 +5374,7 @@ ha_rows ha_mroonga::storage_records_in_range(uint key_nr, key_range *range_min,
while (grn_table_cursor_next(ctx, index_cursor) != GRN_ID_NIL) {
row_count++;
}
grn_table_cursor_close(ctx, index_cursor);
grn_obj_unlink(ctx, index_cursor);
grn_table_cursor_close(ctx, cursor);
row_count = (int)(round((double)table_size * ((double)row_count / (double)cardinality)));
}
Expand Down

0 comments on commit e9e6723

Please sign in to comment.