Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues reported by valgrind #2017

Merged
merged 2 commits into from
Jan 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Sming/Arch/Host/Components/hostlib/startup.cpp
Original file line number Diff line number Diff line change
@@ -255,5 +255,8 @@ int main(int argc, char* argv[])

pause(config.exitpause);

// Avoid issues with debug statements whilst running exit handlers
m_setPuts(nullptr);

return exitCode;
}
7 changes: 3 additions & 4 deletions Sming/Core/Network/TcpConnection.cpp
Original file line number Diff line number Diff line change
@@ -499,12 +499,11 @@ err_t TcpConnection::staticOnPoll(void* arg, tcp_pcb* tcp)

err_t TcpConnection::internalOnPoll()
{
//if (tcp->state != ESTABLISHED)
// return ERR_OK;

sleep++;
err_t res = onPoll();
checkSelfFree();
if(res == ERR_OK) {
checkSelfFree();
}
debug_tcp_ext("<poll");
return res;
}