Kaydet (Commit) 7ed117ad authored tarafından Hirokazu Yamamoto's avatar Hirokazu Yamamoto

Issue #10637: Called CloseHandle twice in os.stat/os.lstat (Windows)

üst 2c1ecc30
...@@ -1159,8 +1159,8 @@ win32_xstat_impl(const char *path, struct win32_stat *result, BOOL traverse, int ...@@ -1159,8 +1159,8 @@ win32_xstat_impl(const char *path, struct win32_stat *result, BOOL traverse, int
free(target_path); free(target_path);
return code; return code;
} }
} } else
CloseHandle(hFile); CloseHandle(hFile);
} }
attribute_data_to_stat(&info, reparse_tag, result); attribute_data_to_stat(&info, reparse_tag, result);
...@@ -1232,8 +1232,8 @@ win32_xstat_impl_w(const wchar_t *path, struct win32_stat *result, BOOL traverse ...@@ -1232,8 +1232,8 @@ win32_xstat_impl_w(const wchar_t *path, struct win32_stat *result, BOOL traverse
free(target_path); free(target_path);
return code; return code;
} }
} } else
CloseHandle(hFile); CloseHandle(hFile);
} }
attribute_data_to_stat(&info, reparse_tag, result); attribute_data_to_stat(&info, reparse_tag, result);
......
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