Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic-graph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olivier Stasse
dynamic-graph
Commits
27bde8fa
Commit
27bde8fa
authored
14 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Modify deallocation of poolStorage object in order to fix a memory bug.
parent
8496d7d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/dynamic-graph/pool.h
+4
-0
4 additions, 0 deletions
include/dynamic-graph/pool.h
src/dgraph/pool.cpp
+3
-2
3 additions, 2 deletions
src/dgraph/pool.cpp
with
7 additions
and
2 deletions
include/dynamic-graph/pool.h
+
4
−
0
View file @
27bde8fa
...
@@ -76,6 +76,10 @@ namespace dynamicgraph
...
@@ -76,6 +76,10 @@ namespace dynamicgraph
*/
*/
void
deregisterEntity
(
const
std
::
string
&
entname
);
void
deregisterEntity
(
const
std
::
string
&
entname
);
/*! \brief Unregister an entity.
\par[in] entity: iterator in the map,
*/
void
deregisterEntity
(
const
Entities
::
iterator
&
entity
);
/*! \brief Get an entity.
/*! \brief Get an entity.
\par[in] entname: The name of the entity,
\par[in] entname: The name of the entity,
\return Pointer towards the entity.
\return Pointer towards the entity.
...
...
This diff is collapsed.
Click to expand it.
src/dgraph/pool.cpp
+
3
−
2
View file @
27bde8fa
...
@@ -48,11 +48,12 @@ PoolStorage::
...
@@ -48,11 +48,12 @@ PoolStorage::
{
{
dgDEBUG
(
15
)
<<
"Delete
\"
"
dgDEBUG
(
15
)
<<
"Delete
\"
"
<<
(
iter
->
first
)
<<
"
\"
"
<<
std
::
endl
;
<<
(
iter
->
first
)
<<
"
\"
"
<<
std
::
endl
;
delete
((
Entity
*
)
iter
->
second
);
Entity
*
entity
=
iter
->
second
;
deregisterEntity
(
iter
);
delete
(
entity
);
}
}
dgDEBUGOUT
(
15
);
dgDEBUGOUT
(
15
);
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment