Memory Leak Issue - troubleshooting - 14 questions

It would help to go back to your original post and edit it as follows to get the code more readable:

But yes, a less monolithic question might attract more attention: people here are keen to help but are all busy people, so make it as easy on them as possible to identify the issues at stake.