summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-07-23 15:03:43 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-07-23 15:03:43 (GMT)
commit81d3377737c866deb77628b1b9e89e1fc675724a (patch)
tree4258d0a858a811a9ca3b577c155be37e9857fa76 /src
parentf550bc0cea1da09002118fe8dc4455b18fc26717 (diff)
downloadhdf5-81d3377737c866deb77628b1b9e89e1fc675724a.zip
hdf5-81d3377737c866deb77628b1b9e89e1fc675724a.tar.gz
hdf5-81d3377737c866deb77628b1b9e89e1fc675724a.tar.bz2
[svn-r27427] - 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')
-rw-r--r--src/H5.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index 37476b0..3d4512f 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -145,6 +145,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*/