[boost] Could shared_ptr cause memory leak?