From ad885f8be5199baa5f321468fa6b6c0a3d1b8055 Mon Sep 17 00:00:00 2001 From: hobbs Date: Mon, 19 Feb 2007 23:49:05 +0000 Subject: (Tcl_FSEvalFile): 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 bda1cab..a587794 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.77.2.33 2006/11/28 22:20:01 andreas_kupries Exp $ + * RCS: @(#) $Id: tclIOUtil.c,v 1.77.2.34 2007/02/19 23:49:05 hobbs Exp $ */ #include "tclInt.h" @@ -1724,6 +1724,7 @@ Tcl_FSEvalFile(interp, pathPtr) result = TCL_ERROR; objPtr = Tcl_NewObj(); + Tcl_IncrRefCount(objPtr); if (Tcl_FSStat(pathPtr, &statBuf) == -1) { Tcl_SetErrno(errno); -- cgit v0.12