mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
[svn-r1702] Closed some more memory leaks on failure conditions...
This commit is contained in:
parent
ce08905a57
commit
53b90c7069
@ -1260,6 +1260,12 @@ H5T_conv_struct_opt(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
if (dst_memb_size > src_memb_size) {
|
||||
offset -= src_memb_size;
|
||||
if (dst_memb_size > src->size-offset) {
|
||||
H5MM_xfree(priv->src2dst);
|
||||
H5MM_xfree(priv->src_memb_id);
|
||||
H5MM_xfree(priv->dst_memb_id);
|
||||
H5MM_xfree(priv->memb_path);
|
||||
H5MM_xfree(priv->memb_nelmts);
|
||||
cdata->priv = priv = H5MM_xfree (priv);
|
||||
HRETURN_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL,
|
||||
"convertion is unsupported by this "
|
||||
"function");
|
||||
|
Loading…
Reference in New Issue
Block a user