diff --git a/net/respondd/src/respondd.c b/net/respondd/src/respondd.c index e8a252a..89e5946 100644 --- a/net/respondd/src/respondd.c +++ b/net/respondd/src/respondd.c @@ -468,7 +468,7 @@ static void accept_request(struct request_schedule *schedule, int sock, strcpy(new_task->request, input); memcpy(&new_task->client_addr, &addr, addrlen); - if(!schedule_push_request(schedule, new_task)) { + if (!schedule_push_request(schedule, new_task)) { free(new_task); } }