There is a memory leak in SqlQuery::ClearArguments() and SqlFieldsQuery::ClearArguments().
GitHub Pull Request #2299
Upsource review #233