mirror of
https://github.com/opus-tango/http-server-in-c.git
synced 2026-03-20 03:55:25 +00:00
fix memory leaks and unecessary newlines in logs
This commit is contained in:
@@ -37,9 +37,10 @@ void* client_handler(void* args) {
|
||||
send(client, response->body, response->content_length, 0);
|
||||
send(client, "\r\n", 2, 0);
|
||||
|
||||
free(response);
|
||||
return NULL;
|
||||
free_http_response(response);
|
||||
free(headers);
|
||||
}
|
||||
free(buffer);
|
||||
free(args);
|
||||
return NULL;
|
||||
}
|
||||
Reference in New Issue
Block a user