summaryrefslogtreecommitdiffstats
path: root/src/H5E.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-01-05 02:46:26 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-01-05 02:46:26 (GMT)
commit3e0e79aa6eaa26106d22c0b860d523fe945cb0ac (patch)
tree1dc23a6c4bec8e261c461fd8d318c8100ab4cfd1 /src/H5E.c
parent1cbc72e1ef6d5a0341713b4c7d8b113310a52551 (diff)
downloadhdf5-3e0e79aa6eaa26106d22c0b860d523fe945cb0ac.zip
hdf5-3e0e79aa6eaa26106d22c0b860d523fe945cb0ac.tar.gz
hdf5-3e0e79aa6eaa26106d22c0b860d523fe945cb0ac.tar.bz2
[svn-r28795] Description:
Clean up more memory allocation mis-matches. Tested on: Linux/32 2.6.x (jam) w/serial MacOSX/64 10.11.2 (amazon) w/serial & parallel
Diffstat (limited to 'src/H5E.c')
-rw-r--r--src/H5E.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5E.c b/src/H5E.c
index 4374f1d..efa83e4 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -1417,8 +1417,13 @@ H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned line,
done:
if(va_started)
va_end(ap);
+#ifdef H5_HAVE_VASPRINTF
+ if(tmp)
+ HDfree(tmp);
+#else /* H5_HAVE_VASPRINTF */
if(tmp)
H5MM_xfree(tmp);
+#endif /* H5_HAVE_VASPRINTF */
FUNC_LEAVE_API(ret_value)
} /* end H5Epush2() */