Fix memory problem from coverity CID 26288
Missing break statement found with coverity CID 26157
Uninitialized Gmax_init (dead code) found by coverity CID 25869
Merge pull request #2156 from tklein23/coverity_errors

Coverity errors: CIDs 26288, 26157, 25869