Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
9300eb6b
Commit
9300eb6b
authored
May 28, 2019
by
Dong Anyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Coverity Scan CID 300412 (Variable macstats going out of scope leaks the storage it points to.)
parent
47822fd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
+3
-1
No files found.
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
View file @
9300eb6b
...
@@ -598,8 +598,10 @@ int flexran_agent_mac_stats_reply(mid_t mod_id,
...
@@ -598,8 +598,10 @@ int flexran_agent_mac_stats_reply(mid_t mod_id,
Protocol__FlexMacSdusDl
**
mac_sdus
;
Protocol__FlexMacSdusDl
**
mac_sdus
;
mac_sdus
=
malloc
(
sizeof
(
Protocol__FlexMacSdusDl
)
*
flexran_get_num_mac_sdu_tx
(
mod_id
,
UE_id
,
cc_id
));
mac_sdus
=
malloc
(
sizeof
(
Protocol__FlexMacSdusDl
)
*
flexran_get_num_mac_sdu_tx
(
mod_id
,
UE_id
,
cc_id
));
if
(
mac_sdus
==
NULL
)
if
(
mac_sdus
==
NULL
)
{
free
(
macstats
);
goto
error
;
goto
error
;
}
macstats
->
n_mac_sdus_dl
=
flexran_get_num_mac_sdu_tx
(
mod_id
,
UE_id
,
cc_id
);
macstats
->
n_mac_sdus_dl
=
flexran_get_num_mac_sdu_tx
(
mod_id
,
UE_id
,
cc_id
);
...
...
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