v.25.10Improvement

Fix memory leak due to GLOBAL

Fixes memory leak due to GLOBAL IN (https://github.com/ClickHouse/ClickHouse/issues/88615). #88617 (pranavmehta94).
Fixes a memory leak issue caused by the use of GLOBAL IN in ClickHouse queries.

Why it matters

This fix addresses a memory leak problem related to the GLOBAL IN construct, which could cause excessive memory consumption and impact query performance and stability. Resolving this issue improves resource management and reliability for users employing GLOBAL IN in their queries.

How to use it

Users do not need to change their queries to benefit from this fix. Simply upgrade to the new version of ClickHouse where the memory leak related to GLOBAL IN has been resolved.