fix memory leak of autorelease pool