mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
TIMIDITY: Fix resource leak (CID 1003919)
This commit is contained in:
parent
7ce6a2d89a
commit
93b2a2e5c6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user