]> granicus.if.org Git - icu/commitdiff
ICU-12908 getTZKeyName in common/wintz.cpp leaks registry handle
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Fri, 13 Jan 2017 01:28:50 +0000 (01:28 +0000)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Fri, 13 Jan 2017 01:28:50 +0000 (01:28 +0000)
X-SVN-Rev: 39555

icu4c/source/common/wintz.cpp

index a8696af39d4af0201eebe87c80a212f357a6a996..14fc476040c7ebd52c49f26a8863b81c7180ace0 100644 (file)
@@ -216,6 +216,8 @@ static LONG getTZKeyName(char* tzKeyName, int32_t length) {
              &cbData);
     }
 
+    RegCloseKey(hkey);
+
     return result;
 }