summaryrefslogtreecommitdiffstats
path: root/win/tclWinSerial.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-05-11 00:31:41 (GMT)
committerhobbs <hobbs>2003-05-11 00:31:41 (GMT)
commit6582ac0a0d302dd8664f42edc0336906c7752569 (patch)
treeeff80bdd4008434ff169670c27e4d8c8a29d6d3b /win/tclWinSerial.c
parentca7a5fa3513866dc5af04d659b7a2303c6191088 (diff)
downloadtcl-6582ac0a0d302dd8664f42edc0336906c7752569.zip
tcl-6582ac0a0d302dd8664f42edc0336906c7752569.tar.gz
tcl-6582ac0a0d302dd8664f42edc0336906c7752569.tar.bz2
* win/tclWinSerial.c (SerialCloseProc): correct mem leak on
closing a Windows serial port [Bug #718002] (schroedter)
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);