Fixed memory leak about MPD connection error