From 812f2d4306a142b5bdf099d5e3e447c2ce3243bb Mon Sep 17 00:00:00 2001 From: Kristi Belcher Date: Wed, 9 Oct 2024 16:18:22 -0700 Subject: [PATCH] trying to resolve mem leaks --- src/umpire/strategy/ResourceAwarePool.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/umpire/strategy/ResourceAwarePool.cpp b/src/umpire/strategy/ResourceAwarePool.cpp index cf6c96de2..58978c4e2 100644 --- a/src/umpire/strategy/ResourceAwarePool.cpp +++ b/src/umpire/strategy/ResourceAwarePool.cpp @@ -209,8 +209,6 @@ void ResourceAwarePool::do_deallocate(Chunk* chunk, void* ptr) noexcept prev->m_event = chunk->m_event; prev->m_resource = chunk->m_resource; - // auto res = chunk->m_resource.get(); - // res.reset(); if (prev->next) prev->next->prev = prev; @@ -228,8 +226,8 @@ void ResourceAwarePool::do_deallocate(Chunk* chunk, void* ptr) noexcept chunk->next = next->next; // TODO: Double check this - // chunk->m_event = next->m_event; - // chunk->m_resource = next->m_resource; + chunk->m_event = next->m_event; + chunk->m_resource = next->m_resource; if (chunk->next) chunk->next->prev = chunk;