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
0e6b0f3e
Commit
0e6b0f3e
authored
Jun 26, 2024
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in rlc_test_5 and rlc_test_6
parent
9724ff03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
openair2/LAYER2/nr_rlc/nr_rlc_entity.c
openair2/LAYER2/nr_rlc/nr_rlc_entity.c
+4
-10
No files found.
openair2/LAYER2/nr_rlc/nr_rlc_entity.c
View file @
0e6b0f3e
...
...
@@ -110,11 +110,8 @@ nr_rlc_entity_t *new_nr_rlc_entity_am(
ret
->
max_retx_threshold
=
max_retx_threshold
;
ret
->
sn_field_length
=
sn_field_length
;
if
(
!
(
sn_field_length
==
12
||
sn_field_length
==
18
))
{
LOG_E
(
RLC
,
"%s:%d:%s: wrong SN field_lenght (%d), must be 12 or 18
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
,
sn_field_length
);
exit
(
1
);
}
AssertFatal
(
sn_field_length
==
12
||
sn_field_length
==
18
,
"Wrong SN field_length (%d), must be 12 or 18
\n
"
,
sn_field_length
);
ret
->
sn_modulus
=
1
<<
ret
->
sn_field_length
;
ret
->
window_size
=
ret
->
sn_modulus
/
2
;
...
...
@@ -172,11 +169,8 @@ nr_rlc_entity_t *new_nr_rlc_entity_um(
ret
->
t_reassembly
=
t_reassembly
;
ret
->
sn_field_length
=
sn_field_length
;
if
(
!
(
sn_field_length
==
6
||
sn_field_length
==
12
))
{
LOG_E
(
RLC
,
"%s:%d:%s: wrong SN field_lenght (%d), must be 6 or 12
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
,
sn_field_length
);
exit
(
1
);
}
AssertFatal
(
sn_field_length
==
6
||
sn_field_length
==
12
,
"Wrong SN field_length (%d), must be 6 or 12
\n
"
,
sn_field_length
);
ret
->
sn_modulus
=
1
<<
ret
->
sn_field_length
;
ret
->
window_size
=
ret
->
sn_modulus
/
2
;
...
...
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