wmi: fix memory leak in parse_wdg