8054801: Memory leak in jdk/src/windows/native/sun/windows/awt_InputMethod.cpp
authorserb
Thu, 21 Aug 2014 18:48:12 +0400
changeset 26355 cc3d1aa1ca6b
parent 26354 2d04e6c7ed68
child 26356 5a24e67172c0
8054801: Memory leak in jdk/src/windows/native/sun/windows/awt_InputMethod.cpp Reviewed-by: alexsch, prr
jdk/src/java.desktop/windows/native/libawt/sun/windows/awt_InputMethod.cpp
--- a/jdk/src/java.desktop/windows/native/libawt/sun/windows/awt_InputMethod.cpp	Tue Aug 19 14:38:25 2014 -0700
+++ b/jdk/src/java.desktop/windows/native/libawt/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;
             }
         }