aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-11-30 22:21:35 +0100
committerTorbjörn Andersson2015-11-30 22:21:35 +0100
commit93b2a2e5c65de34029bc1b8bde18f2c98cb8e4b7 (patch)
tree292f93626d684021106eba11fe469a68081fcc85
parent7ce6a2d89accb2c1a146b8579d3c86f36471f48e (diff)
downloadscummvm-rg350-93b2a2e5c65de34029bc1b8bde18f2c98cb8e4b7.tar.gz
scummvm-rg350-93b2a2e5c65de34029bc1b8bde18f2c98cb8e4b7.tar.bz2
scummvm-rg350-93b2a2e5c65de34029bc1b8bde18f2c98cb8e4b7.zip
TIMIDITY: Fix resource leak (CID 1003919)
-rw-r--r--backends/midi/timidity.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/midi/timidity.cpp b/backends/midi/timidity.cpp
index d10b808bdb..497138850a 100644
--- a/backends/midi/timidity.cpp
+++ b/backends/midi/timidity.cpp
@@ -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;
}