HWMonitor: multiple memory leaks fixed