summaryrefslogtreecommitdiff
path: root/src/base/loader/hex_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/loader/hex_file.cc')
-rwxr-xr-xsrc/base/loader/hex_file.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/loader/hex_file.cc b/src/base/loader/hex_file.cc
index bfebc1b44..e26ac31e6 100755
--- a/src/base/loader/hex_file.cc
+++ b/src/base/loader/hex_file.cc
@@ -56,6 +56,8 @@ HexFile::HexFile(const string _filename)
HexFile::~HexFile()
{
+ if (fp != NULL)
+ fclose(fp);
}
bool