8054801: Memory leak in jdk/src/windows/native/sun/windows/awt_InputMethod.cpp
Reviewed-by: alexsch, prr
--- 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;
}
}