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
a516a632
Commit
a516a632
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 RX_DATA.indication message
parent
8a8b38ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
nfapi/oai_integration/aerial/fapi_nvIPC.c
nfapi/oai_integration/aerial/fapi_nvIPC.c
+4
-0
nfapi/oai_integration/aerial/fapi_vnf_p7.c
nfapi/oai_integration/aerial/fapi_vnf_p7.c
+3
-3
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+3
-0
No files found.
nfapi/oai_integration/aerial/fapi_nvIPC.c
View file @
a516a632
...
...
@@ -222,6 +222,10 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg)
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"%s: Handling RX Indication
\n
"
,
__FUNCTION__
);
if
(((
vnf_info
*
)
vnf_config
->
user_data
)
->
p7_vnfs
->
config
->
nr_rx_data_indication
)
{
(((
vnf_info
*
)
vnf_config
->
user_data
)
->
p7_vnfs
->
config
->
nr_rx_data_indication
)(
&
ind
);
for
(
int
i
=
0
;
i
<
ind
.
number_of_pdus
;
++
i
)
{
free
(
ind
.
pdu_list
[
i
].
pdu
);
}
free
(
ind
.
pdu_list
);
}
break
;
}
...
...
nfapi/oai_integration/aerial/fapi_vnf_p7.c
View file @
a516a632
...
...
@@ -358,7 +358,8 @@ int aerial_phy_nr_rx_data_indication(nfapi_nr_rx_data_indication_t *ind)
rx_ind
->
pdu_list
[
j
].
ul_cqi
=
ind
->
pdu_list
[
j
].
ul_cqi
;
rx_ind
->
pdu_list
[
j
].
timing_advance
=
ind
->
pdu_list
[
j
].
timing_advance
;
rx_ind
->
pdu_list
[
j
].
rssi
=
ind
->
pdu_list
[
j
].
rssi
;
rx_ind
->
pdu_list
[
j
].
pdu
=
ind
->
pdu_list
[
j
].
pdu
;
rx_ind
->
pdu_list
[
j
].
pdu
=
calloc
(
rx_ind
->
pdu_list
[
j
].
pdu_length
,
sizeof
(
uint8_t
));
memcpy
(
rx_ind
->
pdu_list
[
j
].
pdu
,
ind
->
pdu_list
[
j
].
pdu
,
ind
->
pdu_list
[
j
].
pdu_length
);
LOG_D
(
NR_MAC
,
"(%d.%d) Handle %d for index %d, RNTI, %04x, HARQID %d
\n
"
,
ind
->
sfn
,
...
...
@@ -920,8 +921,7 @@ static uint8_t aerial_unpack_nr_rx_data_indication_body(nfapi_nr_rx_data_pdu_t *
}
// Allocate space for the pdu to be unpacked later
uint32_t
length
=
value
->
pdu_length
;
value
->
pdu
=
nfapi_p7_allocate
(
sizeof
(
*
value
->
pdu
)
*
length
,
config
);
value
->
pdu
=
nfapi_p7_allocate
(
sizeof
(
*
value
->
pdu
)
*
value
->
pdu_length
,
config
);
return
1
;
}
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
a516a632
...
...
@@ -267,6 +267,9 @@ static void free_unqueued_nfapi_indications(nfapi_nr_rach_indication_t *rach_ind
}
if
(
rx_ind
&&
rx_ind
->
number_of_pdus
>
0
)
{
for
(
int
i
=
0
;
i
<
rx_ind
->
number_of_pdus
;
++
i
)
{
free_and_zero
(
rx_ind
->
pdu_list
[
i
].
pdu
);
}
free_and_zero
(
rx_ind
->
pdu_list
);
free_and_zero
(
rx_ind
);
}
...
...
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