mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Fix another giant batch of resource leaks. (Mostly memory, but there's
one missing fclose too.) [originally from svn r9919]
This commit is contained in:
@ -308,6 +308,7 @@ static const char *serial_init(void *frontend_handle, void **backend_handle,
|
||||
{
|
||||
char *msg = dupprintf("Opening serial device %s", line);
|
||||
logevent(serial->frontend, msg);
|
||||
sfree(msg);
|
||||
}
|
||||
|
||||
serial->fd = open(line, O_RDWR | O_NOCTTY | O_NDELAY | O_NONBLOCK);
|
||||
|
Reference in New Issue
Block a user