diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-07-27 18:21:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 18:21:00 (GMT) |
commit | 00f5d01c8345d9718ca43aa8ca98bf6cfc05b70d (patch) | |
tree | 725a5146d5a21ff3d10adbbf6038d154d78c6328 /java/src/jni/h5pDAPLImp.c | |
parent | aa9c06135979ee1415b41ea1bccc15524fbfca82 (diff) | |
download | hdf5-00f5d01c8345d9718ca43aa8ca98bf6cfc05b70d.zip hdf5-00f5d01c8345d9718ca43aa8ca98bf6cfc05b70d.tar.gz hdf5-00f5d01c8345d9718ca43aa8ca98bf6cfc05b70d.tar.bz2 |
Normalize java w/ develop (#3283)
Diffstat (limited to 'java/src/jni/h5pDAPLImp.c')
-rw-r--r-- | java/src/jni/h5pDAPLImp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/jni/h5pDAPLImp.c b/java/src/jni/h5pDAPLImp.c index 666f47d..fdafd4c 100644 --- a/java/src/jni/h5pDAPLImp.c +++ b/java/src/jni/h5pDAPLImp.c @@ -150,7 +150,7 @@ Java_hdf_hdf5lib_H5_H5Pget_1efile_1prefix(JNIEnv *env, jclass clss, jlong dapl_i if ((prefix_size = H5Pget_efile_prefix((hid_t)dapl_id, (char *)NULL, 0)) < 0) H5_LIBRARY_ERROR(ENVONLY); - if (NULL == (pre = (char *)HDmalloc(sizeof(char) * (size_t)prefix_size + 1))) + if (NULL == (pre = (char *)malloc(sizeof(char) * (size_t)prefix_size + 1))) H5_OUT_OF_MEMORY_ERROR(ENVONLY, "H5Pget_efile_prefix: memory allocation failed"); if (H5Pget_efile_prefix((hid_t)dapl_id, (char *)pre, (size_t)prefix_size + 1) < 0) @@ -165,7 +165,7 @@ Java_hdf_hdf5lib_H5_H5Pget_1efile_1prefix(JNIEnv *env, jclass clss, jlong dapl_i done: if (pre) - HDfree(pre); + free(pre); return (jstring)str; } /* end Java_hdf_hdf5lib_H5_H5Pget_1efile_1prefix */ |