Fix file descriptor leaks.

Review Request #14804 — Created Feb. 10, 2026 and updated

Information

Djblets
release-5.x

Reviewers

We had a handful of places throughout our code where we were leaking
file descriptors (or potentially leaking, if things failed
unexpectedly). This change fixes those up.

Ran unit tests.

Summary ID
Fix file descriptor leaks.
We had a handful of places throughout our code where we were leaking file descriptors (or potentially leaking, if things failed unexpectedly). This change fixes those up. Testing Done: Ran unit tests.
yylumkkwnqnlzlnpynsslkktomqvwkrq
Checks run (2 succeeded)
flake8 passed.
JSHint passed.