Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 526
    • Issues 526
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 102
    • Merge requests 102
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • BINDBIND
  • Issues
  • #609

Closed
Open
Created Oct 19, 2018 by Mark Andrews@markaOwner

Address memory leak on error

*** CID 1440371:  Resource leaks  (RESOURCE_LEAK)
/lib/isc/pool.c: 145 in isc_pool_expand()
139     
140     		/* Populate the new entries */
141     		for (i = pool->count; i < count; i++) {
142     			result = pool->init(&newpool->pool[i], pool->initarg);
143     			if (result != ISC_R_SUCCESS) {
144     				isc_pool_destroy(&pool);
   CID 1440371:  Resource leaks  (RESOURCE_LEAK)
   Variable "newpool" going out of scope leaks the storage it points to.
145     				return (result);
146     			}
147     		}
148     
149     		isc_pool_destroy(&pool);
150     		pool = newpool;
Edited Oct 19, 2018 by Mark Andrews
Assignee
Assign to
Time tracking