TIMIDITY: Fix resource leak (CID 1003919)

This commit is contained in:
Torbjörn Andersson 2015-11-30 22:21:35 +01:00
parent 7ce6a2d89a
commit 93b2a2e5c6

View File

@ -316,6 +316,7 @@ int MidiDriver_TIMIDITY::connect_to_server(const char* hostname, unsigned short
if (connect(fd, (struct sockaddr *)&in, sizeof(in)) < 0) {
warning("TiMidity: connect(): %s", strerror(errno));
::close(fd);
return -1;
}