Skip to content
Snippets Groups Projects
Commit 65d640e5 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: potential memory leaks in HashPtrTable (#1787)

- using HashPtrTable::set() with the same key twice did not guarantee
  proper cleanup of memory since it simply used the underlying
  HashTable::set() without doing anything about the old memory. Now
  check for pre-existing storage and delete it when it does not
  correspond to the newly stored pointer.

  This problem is independent of potential memory slicing previously
  flagged (#1286) and only partially resolved.
parent fa71840d
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment