Another memory leak

Thank to

https://github.com/TheChief79

for pointing this out.