From b72e8ae6b9d9476e8060a9a8f0e0c8058db2591b Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Tue, 12 Dec 2000 18:20:09 -0500 Subject: [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. :-) --- src/H5FDmpio.c | 1 - 1 file changed, 1 deletion(-) 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"); } -- cgit v0.12