changeset 48350:6e407f9da5fb

8191767: Memory leak in JabSwitch Reviewed-by: serb, ssadetsky
author prr
date Fri, 01 Dec 2017 10:30:57 -0800
parents efda6932a433
children 195b82f9f7d1
files src/jdk.accessibility/windows/native/jabswitch/jabswitch.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.accessibility/windows/native/jabswitch/jabswitch.cpp	Wed Nov 29 15:11:37 2017 -0800
+++ b/src/jdk.accessibility/windows/native/jabswitch/jabswitch.cpp	Fri Dec 01 10:30:57 2017 -0800
@@ -206,6 +206,7 @@
          len - 1 > sizeof(tempPath) - sizeof(acc_props2) ) {
         printf("The USERPROFILE environment variable is too long.\n");
         printf("It must be no longer than 233 characters.\n");
+        free(profilePath);
         return 123;
      }
     path[0] = 0;