Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
3628b1e8
Commit
3628b1e8
authored
Sep 17, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix double free in free_mem_block
parent
fa45a7d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
common/utils/ocp_itti/intertask_interface.cpp
common/utils/ocp_itti/intertask_interface.cpp
+7
-1
No files found.
common/utils/ocp_itti/intertask_interface.cpp
View file @
3628b1e8
...
...
@@ -45,8 +45,14 @@ extern "C" {
}
void
free_mem_block
(
mem_block_t
*
leP
,
const
char
*
caller
)
{
AssertFatal
(
leP
!=
NULL
,
""
);
// AssertFatal(leP!=NULL,"");
if
(
leP
!=
NULL
)
{
free
(
leP
);
LOG_I
(
TMR
,
"intertask_interface free_mem_block is called, after free leP is %d(NULL:0, notNULL:1)
\n
"
,
leP
==
NULL
?
0
:
1
);
leP
=
NULL
;
//prevent double free
}
else
{
LOG_I
(
TMR
,
"intertask_interface free_mem_block is called, but before free leP is NULL
\n
"
);
}
}
mem_block_t
*
get_free_mem_block
(
uint32_t
sizeP
,
const
char
*
caller
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment