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
f6a039f3
Commit
f6a039f3
authored
May 17, 2024
by
Rúben Soares da Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak related to UCI.indication and RACH.indication
parent
48ed7fba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
nfapi/oai_integration/aerial/fapi_nvIPC.c
nfapi/oai_integration/aerial/fapi_nvIPC.c
+18
-0
nfapi/oai_integration/aerial/fapi_vnf_p7.c
nfapi/oai_integration/aerial/fapi_vnf_p7.c
+3
-3
No files found.
nfapi/oai_integration/aerial/fapi_nvIPC.c
View file @
f6a039f3
...
...
@@ -254,6 +254,24 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
if
(((
vnf_info
*
)
vnf_config
->
user_data
)
->
p7_vnfs
->
config
->
nr_uci_indication
)
{
(((
vnf_info
*
)
vnf_config
->
user_data
)
->
p7_vnfs
->
config
->
nr_uci_indication
)(
&
ind
);
for
(
int
i
=
0
;
i
<
ind
.
num_ucis
;
i
++
)
{
if
(
ind
.
uci_list
[
i
].
pdu_type
==
NFAPI_NR_UCI_FORMAT_2_3_4_PDU_TYPE
)
{
if
(
ind
.
uci_list
[
i
].
pucch_pdu_format_2_3_4
.
sr
.
sr_payload
)
{
free
(
ind
.
uci_list
[
i
].
pucch_pdu_format_2_3_4
.
sr
.
sr_payload
);
}
if
(
ind
.
uci_list
[
i
].
pucch_pdu_format_2_3_4
.
harq
.
harq_payload
){
free
(
ind
.
uci_list
[
i
].
pucch_pdu_format_2_3_4
.
harq
.
harq_payload
);
}
if
(
ind
.
uci_list
[
i
].
pucch_pdu_format_2_3_4
.
csi_part1
.
csi_part1_payload
){
free
(
ind
.
uci_list
[
i
].
pucch_pdu_format_2_3_4
.
csi_part1
.
csi_part1_payload
);
}
if
(
ind
.
uci_list
[
i
].
pucch_pdu_format_2_3_4
.
csi_part2
.
csi_part2_payload
){
free
(
ind
.
uci_list
[
i
].
pucch_pdu_format_2_3_4
.
csi_part2
.
csi_part2_payload
);
}
}
}
free
(
ind
.
uci_list
);
ind
.
uci_list
=
NULL
;
}
break
;
...
...
nfapi/oai_integration/aerial/fapi_vnf_p7.c
View file @
f6a039f3
...
...
@@ -473,19 +473,19 @@ int aerial_phy_nr_uci_indication(nfapi_nr_uci_indication_t *ind)
uci_ind_pdu
->
sr
.
sr_payload
=
CALLOC
(
1
,
sizeof
(
*
uci_ind_pdu
->
sr
.
sr_payload
));
AssertFatal
(
uci_ind_pdu
->
sr
.
sr_payload
!=
NULL
,
"Memory not allocated for uci_ind_pdu->sr.sr_payload in phy_nr_uci_indication."
);
*
uci_ind_pdu
->
sr
.
sr_payload
=
*
ind_pdu
->
sr
.
sr_payload
;
memcpy
(
uci_ind_pdu
->
sr
.
sr_payload
,
ind_pdu
->
sr
.
sr_payload
,
sizeof
(
*
uci_ind_pdu
->
sr
.
sr_payload
))
;
}
if
(
ind_pdu
->
csi_part1
.
csi_part1_payload
)
{
uci_ind_pdu
->
csi_part1
.
csi_part1_payload
=
CALLOC
(
1
,
sizeof
(
*
uci_ind_pdu
->
csi_part1
.
csi_part1_payload
));
AssertFatal
(
uci_ind_pdu
->
csi_part1
.
csi_part1_payload
!=
NULL
,
"Memory not allocated for uci_ind_pdu->csi_part1.csi_part1_payload in phy_nr_uci_indication."
);
*
uci_ind_pdu
->
csi_part1
.
csi_part1_payload
=
*
ind_pdu
->
csi_part1
.
csi_part1_payload
;
memcpy
(
uci_ind_pdu
->
csi_part1
.
csi_part1_payload
,
ind_pdu
->
csi_part1
.
csi_part1_payload
,
sizeof
(
*
uci_ind_pdu
->
csi_part1
.
csi_part1_payload
))
;
}
if
(
ind_pdu
->
csi_part2
.
csi_part2_payload
)
{
uci_ind_pdu
->
csi_part2
.
csi_part2_payload
=
CALLOC
(
1
,
sizeof
(
*
uci_ind_pdu
->
csi_part2
.
csi_part2_payload
));
AssertFatal
(
uci_ind_pdu
->
csi_part2
.
csi_part2_payload
!=
NULL
,
"Memory not allocated for uci_ind_pdu->csi_part2.csi_part2_payload in phy_nr_uci_indication."
);
*
uci_ind_pdu
->
csi_part2
.
csi_part2_payload
=
*
ind_pdu
->
csi_part2
.
csi_part2_payload
;
memcpy
(
uci_ind_pdu
->
csi_part2
.
csi_part2_payload
,
ind_pdu
->
csi_part2
.
csi_part2_payload
,
sizeof
(
*
uci_ind_pdu
->
csi_part2
.
csi_part2_payload
))
;
}
break
;
}
...
...
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