mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
fix: leak in ServerConfig class
This commit is contained in:
@@ -72,10 +72,13 @@ void Server::readConfig(char *filename)
|
||||
|
||||
arr = parser.root->find("server")->second->getMapArray();
|
||||
it = arr->begin();
|
||||
ServerConfig *tmp;
|
||||
|
||||
while (it != arr->end())
|
||||
{
|
||||
_configs.push_back(new ServerConfig(*it));
|
||||
tmp = new ServerConfig(*it);
|
||||
_configs.push_back(tmp);
|
||||
tmp->fillFields();
|
||||
++it;
|
||||
}
|
||||
|
||||
@@ -309,7 +312,6 @@ void Server::start(void)
|
||||
else if (events & EPOLLOUT)
|
||||
{
|
||||
/* DBOUT << GREEN << "doing sendData" << ENDL; */
|
||||
client_map[fd]->printClientInfo();
|
||||
sendData(*client_map[fd], fd);
|
||||
if (client_map[fd]->allSended())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user