If pycompat.unnamedtempfile() raises an exception, it would have called
stdin.close() in the finally block without it being initialized first.
Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHGf8540fe4be0f: procutil: avoid an uninitialized variable usage on tempfile exception
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.