mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed a memory leak in the patch for bug 28404.
This commit is contained in:
@ -12911,8 +12911,11 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
|
|||||||
{
|
{
|
||||||
tab->ref.key= -1;
|
tab->ref.key= -1;
|
||||||
tab->ref.key_parts= 0;
|
tab->ref.key_parts= 0;
|
||||||
if (tab->select)
|
if (select && select->quick)
|
||||||
tab->select->quick= 0;
|
{
|
||||||
|
delete select->quick;
|
||||||
|
select->quick= 0;
|
||||||
|
}
|
||||||
if (select_limit < table_records)
|
if (select_limit < table_records)
|
||||||
tab->limit= select_limit;
|
tab->limit= select_limit;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user