Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-AMF
Commits
6c46f4a2
Commit
6c46f4a2
authored
Apr 12, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for memory de-allocation for UE NGAP Context
parent
9ff8652c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+7
-3
No files found.
src/amf-app/amf_n2.cpp
View file @
6c46f4a2
...
...
@@ -694,10 +694,14 @@ void amf_n2::handle_itti_message(itti_initial_ue_message& init_ue_msg) {
// Store InitialUEMessage for Rereoute NAS later
if
(
unc
.
get
()
->
initialUEMsg
.
buf
)
{
int
encoded_size
=
0
;
init_ue_msg
.
initUeMsg
->
encode2buffer
(
unc
.
get
()
->
initialUEMsg
.
buf
,
encoded_size
);
uint8_t
*
initial_ue_msg_buf
=
(
uint8_t
*
)
calloc
(
1
,
BUFFER_SIZE_1024
);
int
encoded_size
=
0
;
init_ue_msg
.
initUeMsg
->
encode2buffer
(
initial_ue_msg_buf
,
encoded_size
);
if
(
encoded_size
>
0
)
{
memcpy
(
(
void
*
)
unc
.
get
()
->
initialUEMsg
.
buf
,
(
void
*
)
initial_ue_msg_buf
,
encoded_size
);
comUt
::
print_buffer
(
"ngap"
,
"InitialUEMessage"
,
unc
.
get
()
->
initialUEMsg
.
buf
,
encoded_size
);
...
...
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