summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2009-07-23 10:07:03 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2009-07-23 10:07:03 (GMT)
commitea4656103530af226ad5280ef0f2465ac6554347 (patch)
tree86aa2528c393478269fd35cffa94b0d98ec45a08
parent432b10e730341c0769705ac13e8b21ceb665d1b5 (diff)
downloadtcl-ea4656103530af226ad5280ef0f2465ac6554347.zip
tcl-ea4656103530af226ad5280ef0f2465ac6554347.tar.gz
tcl-ea4656103530af226ad5280ef0f2465ac6554347.tar.bz2
Fix for [Bug 2820349]
-rw-r--r--ChangeLog4
-rw-r--r--generic/tclNotify.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e30ac7..b4b4001 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-23 Joe Mistachkin <joe@mistachkin.com>
+
+ * generic/tclNotify.c: Fix for [Bug 2820349].
+
2009-07-22 Jan Nijtmans <nijtmans@users.sf.net>
* macosx/tclMacOSXFCmd.c: CONST -> const
diff --git a/generic/tclNotify.c b/generic/tclNotify.c
index 53ef23e..5646ebc 100644
--- a/generic/tclNotify.c
+++ b/generic/tclNotify.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclNotify.c,v 1.29 2008/10/26 18:34:04 dkf Exp $
+ * RCS: @(#) $Id: tclNotify.c,v 1.30 2009/07/23 10:07:05 mistachkin Exp $
*/
#include "tclInt.h"
@@ -412,6 +412,8 @@ Tcl_ThreadQueueEvent(
if (tsdPtr) {
QueueEvent(tsdPtr, evPtr, position);
+ } else {
+ ckfree((char *) evPtr);
}
Tcl_MutexUnlock(&listLock);
}