Description:
    Merge changes from Coverity branch to trunk:

r20907:
    Original issue was #338.

    Refactored code to clean up allocations consistantly, completely, check all returns, assign initialization values and handle errors.

Tested on:
    MacOSX/64 10.9.3 (amazon) w/gcc 4.9, FORTRAN, C++, parallel & multi-threaded
    (too minor to require h5committest)


git-svn-id: https://svn.hdfgroup.uiuc.edu/hdf5/trunk@25207 dab4d1a6-ed17-0410-a064-d1ae371a2980