blob: 00b2b2e9d56a3cebeecfa9bcee658fe7cb87169e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ex01.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/13 09:35:26 by charles #+# #+# */
/* Updated: 2020/11/09 10:02:10 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include <iostream>
void memoryLeak()
{
std::string* panthere = new std::string("String panthere");
std::cout << *panthere << std::endl;
delete panthere;
}
|