Skip to content

Commit

Permalink
trying to resolve mem leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kab163 committed Oct 9, 2024
1 parent c8d7aff commit 812f2d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/umpire/strategy/ResourceAwarePool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 812f2d4

Please sign in to comment.