summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-01-06 20:47:07 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-01-06 20:47:07 (GMT)
commitd21a92b3eaca784fd9fb251c8d47ce312321ed1e (patch)
treee0635c44251b609c0ed2086822501a555a47b12e
parentca6e18e28a4a3e96940145cfcebaff17265a2c75 (diff)
downloadhdf5-d21a92b3eaca784fd9fb251c8d47ce312321ed1e.zip
hdf5-d21a92b3eaca784fd9fb251c8d47ce312321ed1e.tar.gz
hdf5-d21a92b3eaca784fd9fb251c8d47ce312321ed1e.tar.bz2
[svn-r28829] Description:
Bring r28828 from trunk to revise_chunks branch: Switch filter plugin to use H5allocate_memory and H5free_memory instead of malloc and free. Tested on: MacOSX/64 10.11.2 (amazon) w/serial & parallel (h5committest not required on this branch)
-rw-r--r--test/dynlib3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dynlib3.c b/test/dynlib3.c
index b3a02ed..e509a52 100644
--- a/test/dynlib3.c
+++ b/test/dynlib3.c
@@ -81,7 +81,7 @@ H5Z_filter_dynlib3(unsigned int flags, size_t cd_nelmts,
void *outbuf = NULL; /* Pointer to new buffer */
unsigned char *dst; /* Temporary pointer to destination buffer */
- dst = (unsigned char *)(outbuf = malloc(nbytes + SUFFIX_LEN));
+ dst = (unsigned char *)(outbuf = H5allocate_memory(nbytes + SUFFIX_LEN, 0));
/* Copy raw data */
memcpy((void*)dst, (void*)(*buf), nbytes);
@@ -91,7 +91,7 @@ H5Z_filter_dynlib3(unsigned int flags, size_t cd_nelmts,
memcpy(dst, (void*)GROUP_SUFFIX, SUFFIX_LEN);
/* Free input buffer */
- free(*buf);
+ H5free_memory(*buf);
/* Set return values */
*buf_size = nbytes + SUFFIX_LEN;