I reported a memory leak to SV a few years ago related to the CASE statement.
I found that some template generated code could under certain circumstances generate a CASE structure without any “OF” statements (depending on user template input). In this scenario the leak occurred - it seems its never been addressed
I took a look earlier for the PTSS number but can’t find it? I could have swore I raised it on that system - maybe it was a direct email? I know I also raised it on the usergroups too - just so others could be made aware of it and work around accordingly…
In my tests, I don’t think it was related to a parameter, just a straight forward CASE END (without any OF statements) - I seem to remember 4k leaking??