ex00 leaks solved
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/09/05 17:04:38 by aortigos #+# #+# */
|
/* Created: 2025/09/05 17:04:38 by aortigos #+# #+# */
|
||||||
/* Updated: 2025/09/06 01:22:01 by aortigos ### ########.fr */
|
/* Updated: 2025/09/07 19:10:34 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ void randomChump( std::string name )
|
|||||||
Zombie *z;
|
Zombie *z;
|
||||||
|
|
||||||
z = new Zombie(name);
|
z = new Zombie(name);
|
||||||
|
|
||||||
z->announce();
|
z->announce();
|
||||||
|
|
||||||
|
delete (z);
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/09/05 16:42:21 by aortigos #+# #+# */
|
/* Created: 2025/09/05 16:42:21 by aortigos #+# #+# */
|
||||||
/* Updated: 2025/09/06 01:59:00 by aortigos ### ########.fr */
|
/* Updated: 2025/09/07 19:08:01 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -17,7 +17,6 @@ int main()
|
|||||||
Zombie *z;
|
Zombie *z;
|
||||||
|
|
||||||
z = newZombie("Angel");
|
z = newZombie("Angel");
|
||||||
|
|
||||||
z->announce();
|
z->announce();
|
||||||
|
|
||||||
randomChump("Estudiante42");
|
randomChump("Estudiante42");
|
||||||
|
|||||||
Reference in New Issue
Block a user