summaryrefslogtreecommitdiffstats
path: root/src/H5B2hdr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-02-09 22:39:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-02-09 22:39:43 (GMT)
commitc5c85080a7d1dcae35cffba922d88320a2475ec8 (patch)
tree64fe3bdcbe1216f26757a50c1811657a2fd05f0f /src/H5B2hdr.c
parentcc1c7331a5f57b1d8beae65c257164e11060ebef (diff)
downloadhdf5-c5c85080a7d1dcae35cffba922d88320a2475ec8.zip
hdf5-c5c85080a7d1dcae35cffba922d88320a2475ec8.tar.gz
hdf5-c5c85080a7d1dcae35cffba922d88320a2475ec8.tar.bz2
[svn-r18225] Description:
Bring r18244 from trunk to 1.8 branch: Bring revisions from Coverity session from hdf5_1_8_coverity branch to trunk: r18214: Issue 423: cache_ptr was not initialized. if global 'pass' was false, cache_ptr could be used. Extended scope of if(pass) block to include whole function-flush_cache(). r18215: Fix coverity item 317. Removed unreachable code in H5B2_hdr_alloc. r18216: Fixed Coverity issues 57 & 67. Checked oid_count > 0 before memory allocation and oid_list != NULL before dereferencing. Tested on: Mac OS X/32 10.6.2 (amazon) w/debug & production (daily tested on Coverity branch already)
Diffstat (limited to 'src/H5B2hdr.c')
-rw-r--r--src/H5B2hdr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/H5B2hdr.c b/src/H5B2hdr.c
index 696eb89..a4f7d8e 100644
--- a/src/H5B2hdr.c
+++ b/src/H5B2hdr.c
@@ -264,9 +264,6 @@ H5B2_hdr_alloc(H5F_t *f)
ret_value = hdr;
done:
- if(!ret_value && hdr)
- if(H5B2_hdr_free(hdr) < 0)
- HDONE_ERROR(H5E_BTREE, H5E_CANTFREE, NULL, "unable to free shared v2 B-tree info")
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5B2_hdr_alloc() */