UART windows: Handle memory leak in uart_init
gatzka opened this issue · comments
Stephan Gatzka commented
Stephan Gatzka commented
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
Stephan Gatzka commented
Done in master
Stephan Gatzka commented
Done in master.