summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--executor.cpp2
-rw-r--r--jconf.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/executor.cpp b/executor.cpp
index af10811..8f5a2a9 100644
--- a/executor.cpp
+++ b/executor.cpp
@@ -83,7 +83,7 @@ void executor::ex_clock_thd()
ev = lTimedEvents.erase(ev);
}
else
- ev++;
+ ++ev;
}
lck.unlock();
diff --git a/jconf.cpp b/jconf.cpp
index ce82525..4656365 100644
--- a/jconf.cpp
+++ b/jconf.cpp
@@ -316,6 +316,7 @@ bool jconf::parse_config(const char* sFilename)
if(flen <= 16)
{
+ fclose(pFile);
printer::inst()->print_msg(L0, "File is empty or too short - %s.", sFilename);
return false;
}
OpenPOWER on IntegriCloud