8191767: Memory leak in JabSwitch

Reviewed-by: serb, ssadetsky
This commit is contained in:
Phil Race 2017-12-01 10:30:57 -08:00
parent f968e1a670
commit 6d3672187c

View File

@ -206,6 +206,7 @@ int modify(bool enable) {
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;