From 4890692476327e5f6e5785303d7e4c7b69951773 Mon Sep 17 00:00:00 2001 From: dgp Date: Thu, 28 Feb 2008 20:40:24 +0000 Subject: * generic/tclCompExpr.c (ParseExpr): Plug memory leak in error message generation. --- ChangeLog | 3 +++ generic/tclCompExpr.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5faae65..994e06a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,9 @@ 2008-02-28 Don Porter + * 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); } -- cgit v0.12