diff --git a/src/io/MemMgrAllocator.cc b/src/io/MemMgrAllocator.cc index bada16d6..4da361b2 100644 --- a/src/io/MemMgrAllocator.cc +++ b/src/io/MemMgrAllocator.cc @@ -137,7 +137,7 @@ void memmgr_destroy() { if (memmgr_allocated_threads.load()) { while ((last = --memmgr_allocated_threads) > 0) { // there needed to be at least one } - while (last < 0) { + while (last++ < 0) { ++memmgr_allocated_threads; // this shouldn't hit } }