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

r66862 contained memory leak.

üst 10a018c2
......@@ -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)
......
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