🔨」 fix: fixed leak

This commit is contained in:
2025-04-25 17:22:15 +02:00
parent 5ce135594b
commit 202a403430
6 changed files with 38 additions and 27 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/14 14:14:39 by adjoly #+# #+# */
/* Updated: 2025/04/25 15:28:10 by adjoly ### ########.fr */
/* Updated: 2025/04/25 17:03:34 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,9 +24,10 @@ namespace server {
class Client {
public:
Client(struct pollfd *, sockaddr_in, config::Config *);
void parse(void);
Client(const Client &cpy);
virtual ~Client(void);
void parse(void);
void answer(void);
struct pollfd *getPollfd(void) const { return _pfd; }
@ -37,14 +38,9 @@ class Client {
return true;
}
bool isToClose() {
return _toClose;
}
private:
void _getRequest(std::string);
bool _toClose;
struct pollfd *_pfd;
struct sockaddr_in _client_addr;
http::IRequest *_request;

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/11 17:45:43 by adjoly #+# #+# */
/* Updated: 2025/04/25 15:16:52 by adjoly ### ########.fr */
/* Updated: 2025/04/25 17:20:12 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -73,8 +73,6 @@ class Server {
Client *_getClient(int);
void _destroy_clients(void);
config::Config
*_conf; // Pointer to the configuration class (with all config in)
Logger *_log; // Pointer to the log class