🔨」 fix: fixed leak

This commit is contained in:
2025-05-30 16:20:32 +02:00
parent 30866645a0
commit f0a5ceb397
3 changed files with 9 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/30 09:30:15 by adjoly #+# #+# */ /* Created: 2025/04/30 09:30:15 by adjoly #+# #+# */
/* Updated: 2025/05/28 11:29:38 by adjoly ### ########.fr */ /* Updated: 2025/05/30 16:19:06 by adjoly ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -39,6 +39,7 @@ class Get : public ARequest {
class Post : public ARequest { class Post : public ARequest {
public: public:
Post(std::string &data, config::Server *srv); Post(std::string &data, config::Server *srv);
~Post(void);
void parse(std::string const &data); void parse(std::string const &data);

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/30 09:40:16 by adjoly #+# #+# */ /* Created: 2025/04/30 09:40:16 by adjoly #+# #+# */
/* Updated: 2025/05/29 11:44:03 by adjoly ### ########.fr */ /* Updated: 2025/05/30 16:20:15 by adjoly ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/30 09:50:20 by adjoly #+# #+# */ /* Created: 2025/04/30 09:50:20 by adjoly #+# #+# */
/* Updated: 2025/05/29 12:06:54 by adjoly ### ########.fr */ /* Updated: 2025/05/30 16:19:33 by adjoly ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -169,3 +169,8 @@ Response Post::execute(void) {
} }
return (response); return (response);
} }
Post::~Post(void) {
if (_url != not_nullptr)
delete _url;
}