diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2016-01-05 02:46:26 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2016-01-05 02:46:26 (GMT) |
commit | 3e0e79aa6eaa26106d22c0b860d523fe945cb0ac (patch) | |
tree | 1dc23a6c4bec8e261c461fd8d318c8100ab4cfd1 /src/H5E.c | |
parent | 1cbc72e1ef6d5a0341713b4c7d8b113310a52551 (diff) | |
download | hdf5-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() */ |