changeset 9931:92a06b40f0a7

8054801: Memory leak in jdk/src/windows/native/sun/windows/awt_InputMethod.cpp Reviewed-by: alexsch, prr
author serb
date Thu, 21 Aug 2014 18:48:12 +0400
parents 2bdb5b65ceb1
children 5bfc9fff4704
files src/windows/native/sun/windows/awt_InputMethod.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_InputMethod.cpp	Thu Aug 14 14:19:58 2014 +0100
+++ b/src/windows/native/sun/windows/awt_InputMethod.cpp	Thu Aug 21 18:48:12 2014 +0400
@@ -482,6 +482,7 @@
         for (current = 0; current < destIndex; current++) {
             if (strcmp(javaLocaleNames[current], srcLocaleName) == 0) {
                 // duplicated. ignore this HKL
+                free((void *)srcLocaleName);
                 break;
             }
         }