summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-01-06 20:45:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-01-06 20:45:25 (GMT)
commite9a63d30df37fba8b879f18f39cf96b3d46bd615 (patch)
tree6a40923ff698eaba2f24620a6a1549cfe298596d /test
parent971af2d7333584e021564f4f50f3afcfba57716f (diff)
downloadhdf5-e9a63d30df37fba8b879f18f39cf96b3d46bd615.zip
hdf5-e9a63d30df37fba8b879f18f39cf96b3d46bd615.tar.gz
hdf5-e9a63d30df37fba8b879f18f39cf96b3d46bd615.tar.bz2
[svn-r28828] Description:
Switch filter plugin to use H5allocate_memory and H5free_memory instead of malloc and free. Tested on: Linux/32 2.6.x (jam) w/serial Linux/64 2.6.x (jam) w/serial MacOSX/64 10.11.2 (amazon) w/serial & parallel
Diffstat (limited to 'test')
-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;