Refs #8384. Fixing uninitialized variables.
Refs #8384. Fixing resource leak.

The fix is being handled by deleting the unused code.
Refs #8384. Fixing resource leaks.
Refs #8384. Fixing more uninitialized variables.
Merge remote branch 'origin/bugfix/8384_vates_coverity_scan'