From ff5718f042ecccee694ae79c9386a589fd77e8ef Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 9 Jul 2012 12:35:30 -0400 Subject: Fix: Address a few benign memory leaks This patch is the result of static analysis identifying a number of memory leaks. The leaks are all benign as they are a result of not deallocating memory in the desctructor. The fix still has value as it removes false positives in the static analysis. --- src/base/loader/hex_file.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/base') 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 -- cgit v1.2.3