summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2009-07-23 10:19:45 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2009-07-23 10:19:45 (GMT)
commitc588827c5492fd9626c04ed618bfcdb02d9f7c70 (patch)
tree1eb210e1bb00949bb8e7760d8f934e687c243835
parentb28a38b6fe8f6cacbdf12b371e2e5b169b5ec0a0 (diff)
downloadtcl-c588827c5492fd9626c04ed618bfcdb02d9f7c70.zip
tcl-c588827c5492fd9626c04ed618bfcdb02d9f7c70.tar.gz
tcl-c588827c5492fd9626c04ed618bfcdb02d9f7c70.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 d2abbe5..e77c783 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-14 Andreas Kupries <andreask@activestate.com>
* generic/tclBasic.c (DeleteInterpProc,TclArgumentBCEnter,
diff --git a/generic/tclNotify.c b/generic/tclNotify.c
index c09d851..f08a76c 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.11.2.2 2005/04/26 00:46:02 das Exp $
+ * RCS: @(#) $Id: tclNotify.c,v 1.11.2.3 2009/07/23 10:19:46 mistachkin Exp $
*/
#include "tclInt.h"
@@ -409,6 +409,8 @@ Tcl_ThreadQueueEvent(threadId, evPtr, position)
if (tsdPtr) {
QueueEvent(tsdPtr, evPtr, position);
+ } else {
+ ckfree((char *) evPtr);
}
Tcl_MutexUnlock(&listLock);
}