diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2010-12-07 10:24:37 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2010-12-07 10:24:37 (GMT) |
commit | 7ed117addf090ac6423cf9e922204b9ac54fe619 (patch) | |
tree | 292617260525dca4ce2aa4b1ab5dd4b8c9ac6dc4 /Modules | |
parent | 2c1ecc300e1474851be46e26f79dde413157c706 (diff) | |
download | cpython-7ed117addf090ac6423cf9e922204b9ac54fe619.zip cpython-7ed117addf090ac6423cf9e922204b9ac54fe619.tar.gz cpython-7ed117addf090ac6423cf9e922204b9ac54fe619.tar.bz2 |
Issue #10637: Called CloseHandle twice in os.stat/os.lstat (Windows)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 01da01d..6f13776 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1159,8 +1159,8 @@ win32_xstat_impl(const char *path, struct win32_stat *result, BOOL traverse, int free(target_path); return code; } - } - CloseHandle(hFile); + } else + CloseHandle(hFile); } 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); return code; } - } - CloseHandle(hFile); + } else + CloseHandle(hFile); } attribute_data_to_stat(&info, reparse_tag, result); |