How do I deal with memory leaks? (2022)