Fix leake and use pre-increment

This commit is contained in:
Esfomeado
2017-04-21 10:33:25 +01:00
committed by fireice-uk
parent 05610ba80a
commit 2ade51acfa
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ void executor::ex_clock_thd()
ev = lTimedEvents.erase(ev);
}
else
ev++;
++ev;
}
lck.unlock();
+1
View File
@@ -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;
}