Skip to content
Snippets Groups Projects

WIP: ENH: avoid potential HashPtrTable memory leaks (#1286)

Closed Mark OLESEN requested to merge feature-HashPtrTable into develop
  • in previous versions the HashPtrTable used a HashTable<T*> for its underlying storage and added additional routines for deallocating memory when items were deleted or the table was cleared.

    This generally works well, but direct use of any HashTable<T*> removal methods without additional wrapping results in memory leaks.

    The safer means is to use a container with its own memory management. For example, HashTable<autoPtr>.

    Any memory cleanup now becomes automatic.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply