mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 05:17:59 +03:00
add: safe memory free
This commit is contained in:
@@ -36,7 +36,11 @@ Request::Request(char *str)
|
||||
|
||||
void Request::freeData(void)
|
||||
{
|
||||
delete _body;
|
||||
if (_body != NULL)
|
||||
{
|
||||
delete _body;
|
||||
_body = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
std::string &Request::getURI(void)
|
||||
|
||||
Reference in New Issue
Block a user