summaryrefslogtreecommitdiffstats
path: root/tools/test/h5jam/getub.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/h5jam/getub.c')
-rw-r--r--tools/test/h5jam/getub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/test/h5jam/getub.c b/tools/test/h5jam/getub.c
index a21c2af..a9b4437 100644
--- a/tools/test/h5jam/getub.c
+++ b/tools/test/h5jam/getub.c
@@ -138,14 +138,15 @@ main(int argc, const char *argv[])
} /* end if */
/* close things and exit */
+ HDfree(filename);
HDfree(buf);
HDclose(fd);
return EXIT_SUCCESS;
error:
- if (buf)
- HDfree(buf);
+ HDfree(filename);
+ HDfree(buf);
if (fd >= 0)
HDclose(fd);
return EXIT_FAILURE;