summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-07-24 21:39:49 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-07-24 21:39:49 (GMT)
commit66a9664765c265b091ec09d7784a08879616e941 (patch)
tree513e4679e4572f660b1d4f5de1ad4122648a54f0 /src/H5.c
parent266e5feddfefc583413ac82a9de1a9941f2ddaba (diff)
downloadhdf5-66a9664765c265b091ec09d7784a08879616e941.zip
hdf5-66a9664765c265b091ec09d7784a08879616e941.tar.gz
hdf5-66a9664765c265b091ec09d7784a08879616e941.tar.bz2
[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.
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c3
1 files changed, 3 insertions, 0 deletions
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*/