Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Worker.N
openairinterface5G
Commits
c7d2937e
Commit
c7d2937e
authored
5 years ago
by
DONG Anyuan
Browse files
Options
Downloads
Patches
Plain Diff
Fix Coverity Scan CID 340221 (Variable msg going out of scope leaks the storage it points to.)
parent
4a3f26b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/X2AP/x2ap_eNB_handler.c
+2
-0
2 additions, 0 deletions
openair2/X2AP/x2ap_eNB_handler.c
with
2 additions
and
0 deletions
openair2/X2AP/x2ap_eNB_handler.c
+
2
−
0
View file @
c7d2937e
...
...
@@ -874,6 +874,7 @@ int x2ap_eNB_handle_ue_context_release (instance_t instance,
if
(
ue_id
!=
x2ap_find_id_from_id_source
(
&
instance_p
->
id_manager
,
id_source
))
{
X2AP_WARN
(
"incorrect/unknown X2AP IDs for UE (old ID %d new ID %d), ignoring UE context release
\n
"
,
id_source
,
id_target
);
itti_free
(
ITTI_MSG_ORIGIN_ID
(
msg
),
msg
);
return
0
;
}
...
...
@@ -883,6 +884,7 @@ int x2ap_eNB_handle_ue_context_release (instance_t instance,
id_source
,
x2ap_id_get_id_target
(
&
instance_p
->
id_manager
,
ue_id
),
id_target
);
itti_free
(
ITTI_MSG_ORIGIN_ID
(
msg
),
msg
);
return
0
;
}
...
...
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