diff options
| author | dgp@users.sourceforge.net <dgp> | 2008-02-28 20:40:24 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2008-02-28 20:40:24 (GMT) |
| commit | 24a11f09488f8d01512673d63cf127189d72acbb (patch) | |
| tree | 78b2204878a13b45cc2fad191ada9055fedee3e3 | |
| parent | ca203a45372df977747647cf71536e7265455151 (diff) | |
| download | tcl-24a11f09488f8d01512673d63cf127189d72acbb.zip tcl-24a11f09488f8d01512673d63cf127189d72acbb.tar.gz tcl-24a11f09488f8d01512673d63cf127189d72acbb.tar.bz2 | |
* generic/tclCompExpr.c (ParseExpr): Plug memory leak in error
message generation.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | generic/tclCompExpr.c | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -13,6 +13,9 @@ 2008-02-28 Don Porter <dgp@users.sourceforge.net> + * generic/tclCompExpr.c (ParseExpr): Plug memory leak in error + message generation. + * generic/tclStringObj.c (Tcl_AppendFormatToObj): [format %llx $big] leaked an mp_int. 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); } |
