Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 415
    • Issues 415
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Merge requests
  • !256

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

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Mark OLESEN requested to merge feature-HashPtrTable into develop May 03, 2019
  • Overview 1
  • Commits 0
  • Changes 0
  • 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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature-HashPtrTable