summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-05-06 23:51:32 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-05-06 23:51:32 (GMT)
commitd9de529a706559caa6f3cadab3c54249eca3c8d9 (patch)
tree286ef636ccd96cb8b4f3626d66119f8045d894a9 /generic
parent06da97fda1d8384b5700cf28a14998a15ca94c0a (diff)
downloadtcl-d9de529a706559caa6f3cadab3c54249eca3c8d9.zip
tcl-d9de529a706559caa6f3cadab3c54249eca3c8d9.tar.gz
tcl-d9de529a706559caa6f3cadab3c54249eca3c8d9.tar.bz2
Stop leak in io-33.7.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIOCmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c
index b206303..afd6272 100644
--- a/generic/tclIOCmd.c
+++ b/generic/tclIOCmd.c
@@ -345,7 +345,8 @@ Tcl_GetsObjCmd(
if (objc == 3) {
if (Tcl_ObjSetVar2(interp, objv[2], NULL, linePtr,
TCL_LEAVE_ERR_MSG) == NULL) {
- return TCL_ERROR;
+ code = TCL_ERROR;
+ goto done;
}
Tcl_SetObjResult(interp, Tcl_NewIntObj(lineLen));
} else {