Fix the memory leak? Nah. I just set a cron job that restarts the server every 30 hours. That’s because I’m a software engineer, not a computer scientist.