diff options
author | hobbs <hobbs@noemail.net> | 2003-05-11 00:31:40 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2003-05-11 00:31:40 (GMT) |
commit | e162a20fc6482d61a53b008ae0cd7990f7792289 (patch) | |
tree | eff80bdd4008434ff169670c27e4d8c8a29d6d3b /win/tclWinSerial.c | |
parent | 0ca7aaf9885b78579182b526335d3be7f52580e9 (diff) | |
download | tcl-e162a20fc6482d61a53b008ae0cd7990f7792289.zip tcl-e162a20fc6482d61a53b008ae0cd7990f7792289.tar.gz tcl-e162a20fc6482d61a53b008ae0cd7990f7792289.tar.bz2 |
* win/tclWinSerial.c (SerialCloseProc): correct mem leak on
closing a Windows serial port [Bug #718002] (schroedter)
FossilOrigin-Name: 4fa01110437d373a7b1972b3bd313a6b37541e0e
Diffstat (limited to 'win/tclWinSerial.c')
-rw-r--r-- | win/tclWinSerial.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c index fb819a2..17678f2 100644 --- a/win/tclWinSerial.c +++ b/win/tclWinSerial.c @@ -11,7 +11,7 @@ * * Serial functionality implemented by Rolf.Schroedter@dlr.de * - * RCS: @(#) $Id: tclWinSerial.c,v 1.25 2003/01/16 20:55:53 hobbs Exp $ + * RCS: @(#) $Id: tclWinSerial.c,v 1.25.2.1 2003/05/11 00:31:41 hobbs Exp $ */ #include "tclWinInt.h" @@ -647,6 +647,8 @@ SerialCloseProc( } CloseHandle(serialPtr->writeThread); + CloseHandle(serialPtr->osWrite.hEvent); + DeleteCriticalSection(&serialPtr->csWrite); CloseHandle(serialPtr->evWritable); CloseHandle(serialPtr->evStartWriter); CloseHandle(serialPtr->evStopWriter); |