diff options
author | hobbs <hobbs> | 2003-05-11 00:30:31 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-05-11 00:30:31 (GMT) |
commit | b71af36412cee1d114ad4335d6298e7f91fa7dba (patch) | |
tree | 69b84ab97c4effa44472495983f8e65e65a86efc /win/tclWinSerial.c | |
parent | b701f31c2069ea5779f8e6b5c4f1ffc870f61b5d (diff) | |
download | tcl-b71af36412cee1d114ad4335d6298e7f91fa7dba.zip tcl-b71af36412cee1d114ad4335d6298e7f91fa7dba.tar.gz tcl-b71af36412cee1d114ad4335d6298e7f91fa7dba.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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c index fb819a2..073a517 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.26 2003/05/11 00:30:31 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); |