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
1691c607
Commit
1691c607
authored
Sep 09, 2024
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fix-nas-ue-memory-leaks' into integration_2024_w36
parents
fd6cf5aa
47833b1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+1
-0
openair3/NAS/NR_UE/nr_nas_msg_sim.c
openair3/NAS/NR_UE/nr_nas_msg_sim.c
+11
-0
No files found.
openair2/RRC/NR_UE/rrc_UE.c
View file @
1691c607
...
...
@@ -1823,6 +1823,7 @@ void *rrc_nrue(void *notUsed)
// error: the remote gNB is hardcoded here
rb_id_t
srb_id
=
rrc
->
Srb
[
2
]
==
RB_ESTABLISHED
?
2
:
1
;
nr_pdcp_data_req_srb
(
rrc
->
ue_id
,
srb_id
,
0
,
length
,
buffer
,
deliver_pdu_srb_rlc
,
NULL
);
free
(
req
->
nasMsg
.
data
);
free
(
buffer
);
break
;
}
...
...
openair3/NAS/NR_UE/nr_nas_msg_sim.c
View file @
1691c607
...
...
@@ -614,6 +614,8 @@ static void generateAuthenticationResp(nr_ue_nas_t *nas, as_nas_info_t *initialN
initialNasMsg
->
data
=
(
Byte_t
*
)
malloc
(
size
*
sizeof
(
Byte_t
));
initialNasMsg
->
length
=
mm_msg_encode
(
mm_msg
,
(
uint8_t
*
)(
initialNasMsg
->
data
),
size
);
// Free res value after encode
free
(
res
.
value
);
}
int
nas_itti_kgnb_refresh_req
(
instance_t
instance
,
const
uint8_t
kgnb
[
32
])
...
...
@@ -1002,6 +1004,11 @@ static void generatePduSessionEstablishRequest(nr_ue_nas_t *nas, as_nas_info_t *
security_header_len
+
mm_msg_encode
(
mm_msg
,
(
uint8_t
*
)(
initialNasMsg
->
data
+
security_header_len
),
size
-
security_header_len
);
// Free allocated memory after encode
free
(
req_buffer
);
free
(
mm_msg
->
uplink_nas_transport
.
dnn
.
value
);
free
(
mm_msg
->
uplink_nas_transport
.
snssai
.
value
);
/* ciphering */
uint8_t
buf
[
initialNasMsg
->
length
-
7
];
stream_cipher
.
context
=
nas
->
security_container
->
ciphering_context
;
...
...
@@ -1323,6 +1330,8 @@ void *nas_nrue(void *args_p)
capture_pdu_session_establishment_accept_msg
(
pdu_buffer
,
pdu_length
);
}
// Free NAS buffer memory after use (coming from RRC)
free
(
pdu_buffer
);
break
;
}
...
...
@@ -1447,6 +1456,8 @@ void *nas_nrue(void *args_p)
LOG_W
(
NR_RRC
,
"unknown message type %d
\n
"
,
msg_type
);
break
;
}
// Free NAS buffer memory after use (coming from RRC)
free
(
pdu_buffer
);
if
(
initialNasMsg
.
length
>
0
)
send_nas_uplink_data_req
(
nas
,
&
initialNasMsg
);
...
...
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