From 6582ac0a0d302dd8664f42edc0336906c7752569 Mon Sep 17 00:00:00 2001 From: hobbs Date: Sun, 11 May 2003 00:31:41 +0000 Subject: * win/tclWinSerial.c (SerialCloseProc): correct mem leak on closing a Windows serial port [Bug #718002] (schroedter) --- ChangeLog | 3 +++ win/tclWinSerial.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 037a034..28b8f5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-05-10 Jeff Hobbs + * win/tclWinSerial.c (SerialCloseProc): correct mem leak on + closing a Windows serial port [Bug #718002] (schroedter) + * generic/tclCmdMZ.c (Tcl_StringObjCmd): prevent string repeat crash when overflow sizes were given (throws error). [Bug #714106] 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); -- cgit v0.12