diff options
author | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2016-07-08 17:27:22 -0700 |
---|---|---|
committer | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2016-07-08 17:28:06 -0700 |
commit | 611d1e53dbf58d6bec4e140476065f40f6e181fe (patch) | |
tree | acfbbedc5f222c3728653630e636bd7bc6f1c43d /tools/aubdump.c | |
parent | 2603b98cab0378f791e4f0d8049dc3cd9b54c209 (diff) |
aubdump: Only close aub file if we opened it
Diffstat (limited to 'tools/aubdump.c')
-rw-r--r-- | tools/aubdump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c index 8635d095..30dc742f 100644 --- a/tools/aubdump.c +++ b/tools/aubdump.c @@ -597,6 +597,7 @@ static void __attribute__ ((destructor)) fini(void) { free(filename); - fclose(file); + if (file) + fclose(file); free(bos); } |