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
spbro
OpenXG-RAN
Commits
c6e389ed
Commit
c6e389ed
authored
Dec 19, 2019
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FlexRAN: assert if out of memory
parent
a87220d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
+1
-17
No files found.
openair2/ENB_APP/CONTROL_MODULES/MAC/flexran_agent_mac.c
View file @
c6e389ed
...
...
@@ -693,8 +693,7 @@ int flexran_agent_mac_stats_reply_cell(mid_t mod_id,
// TODO: Fill in the actual noise and interference report for this cell
Protocol__FlexNoiseInterferenceReport
*
ni_report
;
ni_report
=
malloc
(
sizeof
(
Protocol__FlexNoiseInterferenceReport
));
if
(
ni_report
==
NULL
)
goto
error
;
AssertFatal
(
ni_report
,
"cannot malloc() ni_report
\n
"
);
protocol__flex_noise_interference_report__init
(
ni_report
);
ni_report
->
sfn_sf
=
flexran_get_sfn_sf
(
mod_id
);
ni_report
->
has_sfn_sf
=
1
;
...
...
@@ -709,21 +708,6 @@ int flexran_agent_mac_stats_reply_cell(mid_t mod_id,
}
}
return
0
;
error:
if
(
cell_report
!=
NULL
)
{
if
(
n_cc
>
0
)
{
for
(
int
i
=
0
;
i
<
n_cc
;
i
++
)
{
if
(
cell_report
[
i
]
->
noise_inter_report
!=
NULL
)
{
free
(
cell_report
[
i
]
->
noise_inter_report
);
cell_report
[
i
]
->
noise_inter_report
=
NULL
;
}
}
}
free
(
cell_report
);
cell_report
=
NULL
;
}
return
-
1
;
}
int
flexran_agent_mac_destroy_stats_reply
(
Protocol__FlexStatsReply
*
reply
)
{
...
...
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