diff options
-rw-r--r-- | tools/h5tools.c | 2 |
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); |