summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-02-28 20:40:24 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-02-28 20:40:24 (GMT)
commit4890692476327e5f6e5785303d7e4c7b69951773 (patch)
tree78b2204878a13b45cc2fad191ada9055fedee3e3 /generic/tclCompExpr.c
parent9de18330ecc23cf8f00c99de3e46f47e9ba050f0 (diff)
downloadtcl-4890692476327e5f6e5785303d7e4c7b69951773.zip
tcl-4890692476327e5f6e5785303d7e4c7b69951773.tar.gz
tcl-4890692476327e5f6e5785303d7e4c7b69951773.tar.bz2
* generic/tclCompExpr.c (ParseExpr): Plug memory leak in error
message generation.
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index e8fce11..f6ef042 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompExpr.c,v 1.96 2008/02/26 21:50:51 jenglish Exp $
+ * RCS: @(#) $Id: tclCompExpr.c,v 1.97 2008/02/28 20:40:24 dgp Exp $
*/
#include "tclInt.h"
@@ -759,8 +759,8 @@ ParseExpr(
end - lastStart);
if (TclCheckBadOctal(NULL,
Tcl_GetString(copy))) {
- TclNewLiteralStringObj(post,
- "(invalid octal number?)");
+ Tcl_AppendToObj(post,
+ "(invalid octal number?)", -1);
}
Tcl_DecrRefCount(copy);
}