changeset 26355:cc3d1aa1ca6b

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 2d04e6c7ed68
children 5a24e67172c0
files jdk/src/java.desktop/windows/native/libawt/sun/windows/awt_InputMethod.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
             }
         }