Resolve the rest of the scan-build static analysis repotrs

Continued from !16 (closed)

Addressing one more issue not reported by my local scan-build, thanks to Mark Harris for testing the fix.

Merge request reports

Loading