From: Jeff Genovy <29107334+jefgen@users.noreply.github.com> Date: Fri, 13 Jan 2017 01:28:50 +0000 (+0000) Subject: ICU-12908 getTZKeyName in common/wintz.cpp leaks registry handle X-Git-Tag: milestone-59-0-1~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=645b425d97578d955cac01a9e7b352c51711985c;p=icu ICU-12908 getTZKeyName in common/wintz.cpp leaks registry handle X-SVN-Rev: 39555 --- diff --git a/icu4c/source/common/wintz.cpp b/icu4c/source/common/wintz.cpp index a8696af39d4..14fc476040c 100644 --- a/icu4c/source/common/wintz.cpp +++ b/icu4c/source/common/wintz.cpp @@ -216,6 +216,8 @@ static LONG getTZKeyName(char* tzKeyName, int32_t length) { &cbData); } + RegCloseKey(hkey); + return result; }