Some more cleanups and memleak fixes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4265
This commit is contained in:
parent
a919e33aec
commit
6243fa9711
3 changed files with 3 additions and 6 deletions
|
@ -289,6 +289,7 @@ bool SERIAL_open(const char* portname, COMPORT* port) {
|
|||
|
||||
size_t len = strlen(portname);
|
||||
if(len > 240) {
|
||||
free(cp);
|
||||
///////////////////////////////////SetLastError(ERROR_BUFFER_OVERFLOW);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue