| 324 | |
| 325 | |
| 326 | void Materialized_cursor::close() |
| 327 | { |
| 328 | /* Free item_list items */ |
| 329 | free_items(); |
| 330 | if (is_rnd_inited) |
| 331 | (void) table->file->ha_rnd_end(); |
| 332 | /* |
| 333 | We need to grab table->mem_root to prevent free_tmp_table from freeing: |
| 334 | the cursor object was allocated in this memory. |
| 335 | */ |
| 336 | main_mem_root= table->mem_root; |
| 337 | mem_root= &main_mem_root; |
| 338 | clear_alloc_root(&table->mem_root); |
| 339 | free_tmp_table(table->in_use, table); |
| 340 | table= 0; |
| 341 | } |
| 342 | |
| 343 | |
| 344 | Materialized_cursor::~Materialized_cursor() |
nothing calls this directly
no test coverage detected