r66862 contained memory leak.
This commit is contained in:
parent
10a018c285
commit
6c75a30712
|
@ -732,8 +732,10 @@ win32_wchdir(LPCWSTR path)
|
|||
return FALSE;
|
||||
}
|
||||
result = GetCurrentDirectoryW(result, new_path);
|
||||
if (!result)
|
||||
if (!result) {
|
||||
free(new_path);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
if (wcsncmp(new_path, L"\\\\", 2) == 0 ||
|
||||
wcsncmp(new_path, L"//", 2) == 0)
|
||||
|
|
Loading…
Reference in New Issue