We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b90ac4d commit 3d1fb81Copy full SHA for 3d1fb81
1 file changed
src/VecSim/algorithms/svs/svs_utils.h
@@ -421,8 +421,8 @@ class VecSimSVSThreadPoolImpl {
421
// Always valid — initialized with size 1 (write-in-place mode: 0 worker threads,
422
// only the calling thread participates). Resized on VecSim_UpdateThreadPoolSize() calls.
423
static std::shared_ptr<VecSimSVSThreadPoolImpl> instance() {
424
- static auto shared_pool =
425
- std::shared_ptr<VecSimSVSThreadPoolImpl>(new VecSimSVSThreadPoolImpl(1));
+ static auto shared_pool = std::shared_ptr<VecSimSVSThreadPoolImpl>(
+ new VecSimSVSThreadPoolImpl(1), [](VecSimSVSThreadPoolImpl *) { /* leak at exit */ });
426
return shared_pool;
427
}
428
0 commit comments