# HG changeset patch # User prr # Date 1512153057 28800 # Node ID 6e407f9da5fb62312b5df58a9418ab8a10ecbec4 # Parent efda6932a433e1a34cb75386bd871969e0c6613c 8191767: Memory leak in JabSwitch Reviewed-by: serb, ssadetsky diff -r efda6932a433 -r 6e407f9da5fb src/jdk.accessibility/windows/native/jabswitch/jabswitch.cpp --- 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;