virtual THD::~THD(): Assertion `status_var.memory_used == 0' fails on disconnect after an error and SHOW WARNINGS

Description

I'm not sure whether it's related to EXPLAIN update/delete or slow log, but it's reproducible on the tree, and is not reproducible on 10.0-base

Environment

None

Assignee

Sergei Petrunia

Reporter

Elena Stepanova

Labels

None

Fix versions

Priority

Blocker
Configure