Coverity fixes in examples

CID 703168 (#1 of 1): Logically dead code (DEADCODE)dead_error_line: Execution cannot reach this statement: free(procname);.
CID 703195 (#1 of 1): Uninitialized scalar variable (UNINIT)5. uninit_use: Using uninitialized value next_module.
CID 703196 (#1 of 1): Uninitialized scalar variable (UNINIT)11. uninit_use: Using uninitialized value name_offset.
CID 703198 (#1 of 1): Uninitialized scalar variable (UNINIT)11. uninit_use: Using uninitialized value pid_offset.
CID 703199 (#1 of 1): Uninitialized scalar variable (UNINIT)11. uninit_use: Using uninitialized value tasks_offset.
CID 1237217 (#1 of 1): Resource leak (RESOURCE_LEAK)10. leaked_storage: Variable pdb_header going out of scope leaks the storage it points to.