diff options
author | dgp <dgp@users.sourceforge.net> | 2012-06-20 20:13:34 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-06-20 20:13:34 (GMT) |
commit | fa97b72e5eb7b22c29f11a45c41160a3a32e64bb (patch) | |
tree | 411e52b57560b7aff4e96229eeb8e6b651f37772 /win | |
parent | 5f8dff42ac6dc46d1aca06a1e94c41ac27c41cf2 (diff) | |
parent | f9037344f87d9722ef8152dd4c5b404cdd7ba983 (diff) | |
download | tcl-fa97b72e5eb7b22c29f11a45c41160a3a32e64bb.zip tcl-fa97b72e5eb7b22c29f11a45c41160a3a32e64bb.tar.gz tcl-fa97b72e5eb7b22c29f11a45c41160a3a32e64bb.tar.bz2 |
merge 8.5
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinReg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c index f2ac367..13216f3 100644 --- a/win/tclWinReg.c +++ b/win/tclWinReg.c @@ -671,6 +671,8 @@ GetKeyNames( } if (result == TCL_OK) { Tcl_SetObjResult(interp, resultPtr); + } else { + Tcl_DecrRefCount(resultPtr); /* BUGFIX: Don't leak on failure. */ } ckfree(buffer); |