summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-11-16 17:29:26 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-11-16 17:29:26 (GMT)
commiteddfdc1274cc129b2d8b65eeecd8c7c3273244b6 (patch)
treefc4760ebc190062e5adf0db11b2f9557d7f9fe27 /src
parentb39c60db459793993b21b6231cb990e4646f24b3 (diff)
downloadhdf5-eddfdc1274cc129b2d8b65eeecd8c7c3273244b6.zip
hdf5-eddfdc1274cc129b2d8b65eeecd8c7c3273244b6.tar.gz
hdf5-eddfdc1274cc129b2d8b65eeecd8c7c3273244b6.tar.bz2
[svn-r2946] Purpose:
Small code optimzation Description: Removed some unnecessary calls to H5MM_xfree Platforms tested: Solaris 2.6 (baldric)
Diffstat (limited to 'src')
-rw-r--r--src/H5T.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 596efe6..5f2437f 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -6584,8 +6584,10 @@ H5T_cmp(const H5T_t *dt1, const H5T_t *dt2)
} /* end switch */
done:
- H5MM_xfree(idx1);
- H5MM_xfree(idx2);
+ if(idx1!=NULL)
+ H5MM_xfree(idx1);
+ if(idx2!=NULL)
+ H5MM_xfree(idx2);
FUNC_LEAVE(ret_value);
}