I read a manual saying that (see http://en.cppreference.com/w/cpp/memory/shared_ptr/make_shared):
Moreover,
f(shared_ptr<int>(new int(42)), g())
can lead to memory leak if g throws an exception. This problem doesn't exist if make_shared is used.
Why would that lead to memory leak?