diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-10-01 02:02:59 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-10-01 02:02:59 (GMT) |
commit | 53b90c7069051424e6619e44b52b9dfbc06d3b80 (patch) | |
tree | c8e6dfe8ef1db89be8ebdeee4b46b3a43c9addf7 /src | |
parent | ce08905a577da189277afdc01afa792092f4b52f (diff) | |
download | hdf5-53b90c7069051424e6619e44b52b9dfbc06d3b80.zip hdf5-53b90c7069051424e6619e44b52b9dfbc06d3b80.tar.gz hdf5-53b90c7069051424e6619e44b52b9dfbc06d3b80.tar.bz2 |
[svn-r1702] Closed some more memory leaks on failure conditions...
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Tconv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c index 2540204..652e658 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -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"); |