summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hl/src/H5IM.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hl/src/H5IM.c b/hl/src/H5IM.c
index 93d2b3f..e55aaf8 100644
--- a/hl/src/H5IM.c
+++ b/hl/src/H5IM.c
@@ -564,7 +564,7 @@ herr_t H5IMlink_palette( hid_t loc_id,
/* close */
if(H5Sclose(asid) < 0)
goto out;
- if ( H5Tclose( atid ) < 0)
+ if(H5Tclose(atid) < 0)
goto out;
if(H5Aclose(aid) < 0)
goto out;
@@ -630,6 +630,8 @@ herr_t H5IMlink_palette( hid_t loc_id,
/* close */
if(H5Sclose(asid) < 0)
goto out;
+ if(H5Tclose(atid) < 0)
+ goto out;
if(H5Aclose(aid) < 0)
goto out;