1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

DEV-10595 MariaDB daemon leaks memory with specific query

The issue was that in some extreme cases when doing GROUP BY,
buffers for temporary blobs where not properly cleared.
This commit is contained in:
Monty
2016-08-25 09:50:04 +03:00
parent a92a8cc817
commit ee97274ca7
4 changed files with 57 additions and 6 deletions

View File

@ -3607,6 +3607,11 @@ public:
save_copy_field_end= copy_field_end= NULL;
}
}
void free_copy_field_data()
{
for (Copy_field *ptr= copy_field ; ptr != copy_field_end ; ptr++)
ptr->tmp.free();
}
};
class select_union :public select_result_interceptor