Closed fraunhofer-iis-bot closed 1 year ago
In GitLab by @Michael-M-Baron on Sep 13, 2021, 11:35
created merge request !58 to address this issue
In GitLab by @cstender on Sep 28, 2021, 16:32
Thanks a lot for spotting, debugging and fixing the issue!
In GitLab by @Michael-M-Baron on Sep 13, 2021, 11:35
The problem occurs in the main loop of the japi server while processing the received lines. After a client is disconnected, the client object gets cleaned and freed with
japi_remove_client(ctx,client->socket);
At the end of the loop, the client object is accessed again in the loop condition, but the memory has already been freed, what produces an error in valgrind.Japi.c: Line 538