summaryrefslogtreecommitdiffstats
path: root/win/tclWinSerial.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2003-05-11 00:31:40 (GMT)
committerhobbs <hobbs@noemail.net>2003-05-11 00:31:40 (GMT)
commite162a20fc6482d61a53b008ae0cd7990f7792289 (patch)
treeeff80bdd4008434ff169670c27e4d8c8a29d6d3b /win/tclWinSerial.c
parent0ca7aaf9885b78579182b526335d3be7f52580e9 (diff)
downloadtcl-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.c4
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);