f2fb132cb Net: Fix resource leak in ReadBinaryFile(...) (practicalswift)
Tree-SHA512: 879b9334d8bb681fa4b6f96d8ecb54e2a8948065f7be5fe7880131479c813602fc9d4a4314f043e6591e1aed50ffafa7c247362a9cdeb049b0721170e227b89a
Completes T612
Backport of Core PR10408
https://github.com/bitcoin/bitcoin/pull/10408/files
Introduces a memory leak fixed by PR10587
https://github.com/bitcoin/bitcoin/pull/10587
Includes a fix to the locale linter discussed with fabien