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

This commit is contained in:
Hirokazu Yamamoto 2010-12-07 10:24:37 +00:00
parent 2c1ecc300e
commit 7ed117addf

View file

@ -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
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);