summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-02-19 23:49:05 (GMT)
committerhobbs <hobbs>2007-02-19 23:49:05 (GMT)
commitad885f8be5199baa5f321468fa6b6c0a3d1b8055 (patch)
tree740d07c0b58b1c6ee5e850b8748a15478450446d /generic
parent8dc5bc8beb82143f5ea0bc0bbdd609a699cf46c6 (diff)
downloadtcl-ad885f8be5199baa5f321468fa6b6c0a3d1b8055.zip
tcl-ad885f8be5199baa5f321468fa6b6c0a3d1b8055.tar.gz
tcl-ad885f8be5199baa5f321468fa6b6c0a3d1b8055.tar.bz2
(Tcl_FSEvalFile): safe incr of objPtr ref
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIOUtil.c3
1 files changed, 2 insertions, 1 deletions
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);