Fix Coverity warning: Out-of-bounds read

Incorrect values read from a different memory region will cause incorrect computations.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
Fix Coverity warning: Uninitialized scalar field

The field will contain an arbitrary value left over from earlier computations.