Fixed memory leak.
This commit is contained in:
parent
e256e14cc4
commit
be3df80c9c
@ -471,6 +471,7 @@ BOOL GetCommState(HANDLE hFile, LPDCB lpDCB)
|
||||
|
||||
|
||||
memcpy(lpDCB, lpLocalDcb, lpDCB->DCBlength);
|
||||
free(lpLocalDcb);
|
||||
return TRUE;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user