Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
mbe-tools
TTool
Commits
53cb9eff
Commit
53cb9eff
authored
4 years ago
by
Le Van Truong
Browse files
Options
Downloads
Patches
Plain Diff
Fix memory leak problem
parent
8a815463
No related branches found
No related tags found
5 merge requests
!369
Fix memory leak problem
,
!368
Fix memory leak problem
,
!367
Fix memory leak problem
,
!366
Fix memory leak problem
,
!364
Fix memory leak problem
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
simulators/c++2/src_simulator/app/TMLTask.cpp
+2
-0
2 additions, 0 deletions
simulators/c++2/src_simulator/app/TMLTask.cpp
simulators/c++2/src_simulator/sim/SimComponents.cpp
+7
-0
7 additions, 0 deletions
simulators/c++2/src_simulator/sim/SimComponents.cpp
with
9 additions
and
0 deletions
simulators/c++2/src_simulator/app/TMLTask.cpp
+
2
−
0
View file @
53cb9eff
...
...
@@ -78,6 +78,8 @@ TMLTask::~TMLTask(){
}
#endif
if
(
_comment
!=
0
)
delete
[]
_comment
;
if
(
_cpus
!=
0
)
delete
[]
_cpus
;
// free the allocation of cpu array
if
(
_fpgas
!=
0
)
delete
[]
_fpgas
;
// free the allocation of fpga array
}
std
::
string
TMLTask
::
toShortString
()
const
{
...
...
This diff is collapsed.
Click to expand it.
simulators/c++2/src_simulator/sim/SimComponents.cpp
+
7
−
0
View file @
53cb9eff
...
...
@@ -71,9 +71,16 @@ SimComponents::~SimComponents(){
for
(
SerializableList
::
iterator
i
=
_serList
.
begin
();
i
!=
_serList
.
end
();
++
i
){
delete
(
*
i
);
}
for
(
SlaveList
::
iterator
i
=
_slList
.
begin
();
i
!=
_slList
.
end
();
++
i
){
delete
(
*
i
);
}
for
(
TaskList
::
const_iterator
i
=
_taskList
.
begin
();
i
!=
_taskList
.
end
();
++
i
){
//free tasks before terminate simulator
delete
(
*
i
);
}
#ifdef EBRDD_ENABLED
for
(
EBRDDList
::
iterator
i
=
_ebrddList
.
begin
();
i
!=
_ebrddList
.
end
();
++
i
){
delete
(
*
i
);
...
...
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