free or delete in c++

C++
delete --> If  you used the 'new' operator
free --> If you used 'malloc'
Source

Also in C++: