summaryrefslogtreecommitdiffstats
path: root/src/H5FDmpio.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2000-12-12 23:20:09 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2000-12-12 23:20:09 (GMT)
commitb72e8ae6b9d9476e8060a9a8f0e0c8058db2591b (patch)
tree7e66761051c1a7a923c05ab1ebecc5a151b928c2 /src/H5FDmpio.c
parent061ed07676eccb82c3d46ae744fb094bcd9169e4 (diff)
downloadhdf5-b72e8ae6b9d9476e8060a9a8f0e0c8058db2591b.zip
hdf5-b72e8ae6b9d9476e8060a9a8f0e0c8058db2591b.tar.gz
hdf5-b72e8ae6b9d9476e8060a9a8f0e0c8058db2591b.tar.bz2
[svn-r3120] Purpose:
Bug fix Description: In H5FD_mpio_open, there was a mem-xfree of the file variable before it ever gets alloc'ed. This is inside a failure condition that rarely happened. But if it happens, it would be freeing a null pointer. Solution: Removed the error code. Platforms tested: Modi4 -64 parallel. (Everything still works. :-)
Diffstat (limited to 'src/H5FDmpio.c')
-rw-r--r--src/H5FDmpio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index fb49c62..b8f018b 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -779,7 +779,6 @@ H5FD_mpio_open(const char *name, unsigned flags, hid_t fapl_id,
if (mpi_rank == 0) {
/* Get current file size */
if (MPI_SUCCESS != MPI_File_get_size(fh, &size)) {
- H5MM_xfree(file);
MPI_File_close(&fh);
HRETURN_ERROR(H5E_INTERNAL, H5E_MPI, NULL, "MPI_File_get_size failed");
}