If you only call
make_shared()
and not new
or malloc
, then the memory will be freed automatically, you don't need to delete anything manually.