diff options
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r-- | tools/h5dump/h5dump.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 41a0bcc..d4d9543 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -4635,7 +4635,6 @@ main(int argc, const char *argv[]) /* Initialize h5tools lib */ h5tools_init(); if((hand = parse_command_line(argc, argv))==NULL) { - h5tools_setstatus(EXIT_FAILURE); goto done; } @@ -4844,13 +4843,16 @@ main(int argc, const char *argv[]) /* Free tables for objects */ table_list_free(); + if(hand) + free_handler(hand, argc); + + if(fid >=0) if (H5Fclose(fid) < 0) h5tools_setstatus(EXIT_FAILURE); - if(hand) - free_handler(hand, argc); - + if(prefix) HDfree(prefix); + if(fname) HDfree(fname); /* To Do: clean up XML table */ |