how to fix a memory leak windows 10 Archive