Bug 735726 - [PATCH] Fix missing break in switch case statement
Fixed a number of issues (resource leaks, uninitialized members, etc) found by coverity