From 66a9664765c265b091ec09d7784a08879616e941 Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Fri, 24 Jul 2015 16:39:49 -0500 Subject: [svn-r27429] merge 27427 from trunk: - free comm keyval after setting atribute on comm_self - free allocated buffer in t_file_image test tested on jam with parallel. --- src/H5.c | 3 +++ testpar/t_file_image.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/H5.c b/src/H5.c index cc2dd85..bd8ec80 100644 --- a/src/H5.c +++ b/src/H5.c @@ -141,6 +141,9 @@ H5_init_library(void) if(MPI_SUCCESS != (mpi_code = MPI_Comm_set_attr(MPI_COMM_SELF, key_val, NULL))) HMPI_GOTO_ERROR(FAIL, "MPI_Comm_set_attr failed", mpi_code) + + if(MPI_SUCCESS != (mpi_code = MPI_Comm_free_keyval(&key_val))) + HMPI_GOTO_ERROR(FAIL, "MPI_Comm_free_keyval failed", mpi_code) } } #endif /*H5_HAVE_PARALLEL*/ diff --git a/testpar/t_file_image.c b/testpar/t_file_image.c index 544ba32..a2246b6 100644 --- a/testpar/t_file_image.c +++ b/testpar/t_file_image.c @@ -241,6 +241,9 @@ file_image_daisy_chain_test(void) vector_ok = FALSE; VRFY((vector_ok), "verified received vector."); + HDfree(vector_ptr); + vector_ptr = NULL; + /* 7) closes the core file and exit. */ err = H5Sclose(space_id); -- cgit v0.12