fix memory leaks from the wifi drivers (franciscofranco)