summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-02-09 22:32:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-02-09 22:32:28 (GMT)
commita79ba5b13561488c2a5f34efab61a21e9d22b40e (patch)
treeb7bf6c03bace90e984d4f9ce7aed9d3c5daca31b /src
parentf091546b6aea4eb5bad1ea7bcab1880b36e1034a (diff)
downloadhdf5-a79ba5b13561488c2a5f34efab61a21e9d22b40e.zip
hdf5-a79ba5b13561488c2a5f34efab61a21e9d22b40e.tar.gz
hdf5-a79ba5b13561488c2a5f34efab61a21e9d22b40e.tar.bz2
[svn-r18224] Description:
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')
-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() */