Currently eclcc retains a reference to the original IHqlExpression for the parsed query for the whole time that the code is processed and generated.
This should be changed so that
any parsed definitions in the repository objects are freed.
(ii) The parsed query is passed in as an owned pointer, and cleared when no longer required.
The LN legacy eclserver should have similar changes.
Could have a significant effect, especially following the recent left/right ambiguity fix.