Cleaned up memory in flightcontrol