diff --git a/src/RS232_win.c b/src/RS232_win.c --- a/src/RS232_win.c +++ b/src/RS232_win.c @@ -149,6 +149,7 @@ rs232portslist_t* rs232getportlist() // if(NULL!=previtem)previtem->next = item; previtem = item; if(NULL==firstitem)firstitem = item; + rs232close(devName); } } return firstitem;