mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #10637: Called CloseHandle twice in os.stat/os.lstat (Windows)
This commit is contained in:
parent
2c1ecc300e
commit
7ed117addf
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue