r66862 contained memory leak.
This commit is contained in:
parent
10a018c285
commit
6c75a30712
|
@ -732,9 +732,11 @@ 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)
|
||||
/* UNC path, nothing to do. */
|
||||
|
|
Loading…
Reference in New Issue