summaryrefslogtreecommitdiffstats
path: root/generic/tclIORChan.c
diff options
context:
space:
mode:
authorgriffin <briang42@easystreet.net>2023-08-12 04:07:57 (GMT)
committergriffin <briang42@easystreet.net>2023-08-12 04:07:57 (GMT)
commit997617cd7d6c1368f0853db01bbbd1bc3da32c2c (patch)
tree9cb4090b9f7466748e4d883baaed09858534782d /generic/tclIORChan.c
parent0a0ba9e30933d273a7c6b265c177b72f5cdf7e9b (diff)
downloadtcl-997617cd7d6c1368f0853db01bbbd1bc3da32c2c.zip
tcl-997617cd7d6c1368f0853db01bbbd1bc3da32c2c.tar.gz
tcl-997617cd7d6c1368f0853db01bbbd1bc3da32c2c.tar.bz2
Replace more DuplicateObj with ListObjCopy.
Diffstat (limited to 'generic/tclIORChan.c')
-rw-r--r--generic/tclIORChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index af61c4c..f313ab7 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -2261,7 +2261,7 @@ NewReflectedChannel(
rcPtr->mode = mode;
rcPtr->interest = 0; /* Initially no interest registered */
- rcPtr->cmd = Tcl_DuplicateObj(cmdpfxObj);
+ rcPtr->cmd = TclListObjCopy(NULL, cmdpfxObj);
Tcl_IncrRefCount(rcPtr->cmd);
rcPtr->methods = Tcl_NewListObj(METH_WRITE + 1, NULL);
while (mn <= (int)METH_WRITE) {
@@ -2398,7 +2398,7 @@ InvokeTclMethod(
* before the channel id.
*/
- cmd = Tcl_DuplicateObj(rcPtr->cmd);
+ cmd = TclListObjCopy(NULL, rcPtr->cmd);
Tcl_ListObjIndex(NULL, rcPtr->methods, method, &methObj);
Tcl_ListObjAppendElement(NULL, cmd, methObj);
Tcl_ListObjAppendElement(NULL, cmd, rcPtr->name);