gatzka / cio

An ANSI C Conformant I/O Library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UART windows: Handle memory leak in uart_init

gatzka opened this issue · comments

There is a "todo" in the UART init function for freeing the converted COM port name buffer.
Maybe it's a good idea to use CreateFile and convert the name to UTF-16.
See: https://stackoverflow.com/questions/51462048/what-is-the-difference-between-createfile-and-createfilea

Done in master

Done in master.