From 96466cfddf10a573f506e12f2414c193d3418c66 Mon Sep 17 00:00:00 2001 From: hobbs Date: Mon, 19 Feb 2007 23:50:28 +0000 Subject: (Tcl_FSEvalFileEx): safe incr of objPtr ref --- generic/tclIOUtil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index affc185..dc49a50 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -17,7 +17,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOUtil.c,v 1.138 2006/11/28 22:20:28 andreas_kupries Exp $ + * RCS: @(#) $Id: tclIOUtil.c,v 1.139 2007/02/19 23:50:28 hobbs Exp $ */ #include "tclInt.h" @@ -1755,6 +1755,7 @@ Tcl_FSEvalFileEx( result = TCL_ERROR; objPtr = Tcl_NewObj(); + Tcl_IncrRefCount(objPtr); if (Tcl_FSStat(pathPtr, &statBuf) == -1) { Tcl_SetErrno(errno); -- cgit v0.12