summaryrefslogtreecommitdiffstats
path: root/tools/h5tools.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-06-08 17:27:13 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-06-08 17:27:13 (GMT)
commit9c71da98936751207e1b3d670029c8ddd63ac842 (patch)
tree4f1c825e79e4250e3a388627e9a51df7aec9fc61 /tools/h5tools.c
parente69fe58b23439738167352d17f2c6976b4aa8b33 (diff)
downloadhdf5-9c71da98936751207e1b3d670029c8ddd63ac842.zip
hdf5-9c71da98936751207e1b3d670029c8ddd63ac842.tar.gz
hdf5-9c71da98936751207e1b3d670029c8ddd63ac842.tar.bz2
[svn-r1319]
fixed bug that was printing out the "unable to print data message"
Diffstat (limited to 'tools/h5tools.c')
-rw-r--r--tools/h5tools.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index e78a4f7..8196d93 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -2367,6 +2367,7 @@ print_data(hid_t oid, hid_t _p_type, int obj_data)
if (H5Aread(oid, p_type, sm_buf) < 0){
return (status);
}
+ status = 0;
/*print it*/
switch (H5Tget_class(p_type)) {
case H5T_INTEGER:
@@ -2401,6 +2402,7 @@ print_data(hid_t oid, hid_t _p_type, int obj_data)
default: break;
}
+ free(sm_buf);
}
H5Sclose(f_space);