I am trying to debug possible memory leak caused by following line in my code:
DeserializeRegex["Grp1"][strPtr] =
std::shared_ptr<void>(operator new(10), [](void *pi) { delete pi; });
I think one possible cause can be using shared_ptr instead of more efficient make_shared. If so, how can I use make_shared in the above context? I checked few posts which mention custom deleter not possible to write with make_shared. Can anyone guide me to handle this memory leak?
Thanks in advance.