diff options
author | mig <mig> | 2011-03-01 20:02:28 (GMT) |
---|---|---|
committer | mig <mig> | 2011-03-01 20:02:28 (GMT) |
commit | ec3d2f07076c69d153e0a3256eecb3ad3b435e9c (patch) | |
tree | 73265d60c7bc94b334dc6b9ef2555170806cd3b1 /generic/tclCompCmdsSZ.c | |
parent | 764f7a0c9c13e5acb6f059d5a4115ce966a26629 (diff) | |
download | tcl-ec3d2f07076c69d153e0a3256eecb3ad3b435e9c.zip tcl-ec3d2f07076c69d153e0a3256eecb3ad3b435e9c.tar.gz tcl-ec3d2f07076c69d153e0a3256eecb3ad3b435e9c.tar.bz2 |
fix leaks in throw and unset compilers
Diffstat (limited to 'generic/tclCompCmdsSZ.c')
-rw-r--r-- | generic/tclCompCmdsSZ.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c index 2f86be1..348098b 100644 --- a/generic/tclCompCmdsSZ.c +++ b/generic/tclCompCmdsSZ.c @@ -1863,6 +1863,7 @@ TclCompileThrowCmd( CompileWord(envPtr, msgToken, interp, 2); TclCompileSyntaxError(interp, envPtr); + Tcl_DecrRefCount(objPtr); return TCL_OK; } if (len == 0) { @@ -2586,6 +2587,7 @@ TclCompileUnsetCmd( * evaluation with reasonable effort, so spill to interpreted version. */ + TclDecrRefCount(leadingWord); return TCL_ERROR; } TclDecrRefCount(leadingWord); |