summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-10-13 16:38:01 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-10-13 16:38:01 (GMT)
commit5e8c17ac4e08fdf83c4a2b970cc6de8ec8b0a3d7 (patch)
treeb95498fb49dab6316cfa590d447100c210bb9af1 /generic/tclDictObj.c
parent22ef6f7e0ded688194b908ad36841ec45d718c57 (diff)
parent8a910c1a53dec36b9d3dd4b7a378017251c3ef56 (diff)
downloadtcl-5e8c17ac4e08fdf83c4a2b970cc6de8ec8b0a3d7.zip
tcl-5e8c17ac4e08fdf83c4a2b970cc6de8ec8b0a3d7.tar.gz
tcl-5e8c17ac4e08fdf83c4a2b970cc6de8ec8b0a3d7.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index d0ef59d..b2cf916 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -2359,7 +2359,9 @@ DictAppendCmd(
valuePtr = Tcl_DuplicateObj(valuePtr);
}
+ Tcl_IncrRefCount(appendObjPtr);
Tcl_AppendObjToObj(valuePtr, appendObjPtr);
+ Tcl_DecrRefCount(appendObjPtr);
}
Tcl_DictObjPut(NULL, dictPtr, objv[2], valuePtr);