Skip to content

Commit

Permalink
Fix leake and use pre-increment
Browse files Browse the repository at this point in the history
  • Loading branch information
esfomeado committed Apr 9, 2017
1 parent 215480b commit eba4b7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion executor.cpp
Expand Up @@ -83,7 +83,7 @@ void executor::ex_clock_thd()
ev = lTimedEvents.erase(ev);
}
else
ev++;
++ev;
}
lck.unlock();

Expand Down
1 change: 1 addition & 0 deletions jconf.cpp
Expand Up @@ -301,6 +301,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;
}
Expand Down

0 comments on commit eba4b7b

Please sign in to comment.