Kaydet (Commit) 6c75a307 authored tarafından Hirokazu Yamamoto's avatar Hirokazu Yamamoto

r66862 contained memory leak.

üst 10a018c2
...@@ -732,9 +732,11 @@ win32_wchdir(LPCWSTR path) ...@@ -732,9 +732,11 @@ win32_wchdir(LPCWSTR path)
return FALSE; return FALSE;
} }
result = GetCurrentDirectoryW(result, new_path); result = GetCurrentDirectoryW(result, new_path);
if (!result) if (!result) {
free(new_path);
return FALSE; return FALSE;
} }
}
if (wcsncmp(new_path, L"\\\\", 2) == 0 || if (wcsncmp(new_path, L"\\\\", 2) == 0 ||
wcsncmp(new_path, L"//", 2) == 0) wcsncmp(new_path, L"//", 2) == 0)
/* UNC path, nothing to do. */ /* UNC path, nothing to do. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment