Clean up global variable leak.