Skip to content

Commit 3d1fb81

Browse files
committed
use no - op deleter
1 parent b90ac4d commit 3d1fb81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/VecSim/algorithms/svs/svs_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ class VecSimSVSThreadPoolImpl {
421421
// Always valid — initialized with size 1 (write-in-place mode: 0 worker threads,
422422
// only the calling thread participates). Resized on VecSim_UpdateThreadPoolSize() calls.
423423
static std::shared_ptr<VecSimSVSThreadPoolImpl> instance() {
424-
static auto shared_pool =
425-
std::shared_ptr<VecSimSVSThreadPoolImpl>(new VecSimSVSThreadPoolImpl(1));
424+
static auto shared_pool = std::shared_ptr<VecSimSVSThreadPoolImpl>(
425+
new VecSimSVSThreadPoolImpl(1), [](VecSimSVSThreadPoolImpl *) { /* leak at exit */ });
426426
return shared_pool;
427427
}
428428

0 commit comments

Comments
 (0)