diff --git a/channels/serial/client/serial_tty.c b/channels/serial/client/serial_tty.c index b71bd5753..a7d365471 100644 --- a/channels/serial/client/serial_tty.c +++ b/channels/serial/client/serial_tty.c @@ -450,6 +450,7 @@ BOOL serial_tty_read(SERIAL_TTY* tty, BYTE* buffer, UINT32* Length) tcsetattr(tty->fd, TCSANOW, ptermios); tty->timeout = timeout; + free(ptermios); } ZeroMemory(buffer, *Length);