Ensure that all memory allocated by TABLE_LIST::change_refs_to_fields() is in the same memory root!
Attach a file by drag & drop or click to upload