Fix clang scan-build diagnostics
Our nightly build that runs clang's scan-build analyzer was down for a long time. Now that it has been restored, it is showing some diagnostics. Fix them.
A Gitlab security update will be applied on March 29th, between 8am and 10am, EST (UTC-05:00). This site may have intermittent delays during that time.
Our nightly build that runs clang's scan-build analyzer was down for a long time. Now that it has been restored, it is showing some diagnostics. Fix them.