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
lizhongxiao
OpenXG-RAN
Commits
c068e460
Commit
c068e460
authored
Dec 29, 2022
by
Swetank Srivastava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gNB memory leak fixes
parent
d6741722
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
2 deletions
+75
-2
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+3
-0
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+71
-1
openair3/SS/ss_gNB_sys_task.c
openair3/SS/ss_gNB_sys_task.c
+1
-1
No files found.
openair2/GNB_APP/gnb_config.c
View file @
c068e460
...
@@ -1518,6 +1518,9 @@ int RCconfig_nr_parallel(void) {
...
@@ -1518,6 +1518,9 @@ int RCconfig_nr_parallel(void) {
if
(
parallel_config
==
NULL
)
set_parallel_conf
(
parallel_conf
);
if
(
parallel_config
==
NULL
)
set_parallel_conf
(
parallel_conf
);
if
(
worker_config
==
NULL
)
set_worker_conf
(
worker_conf
);
if
(
worker_config
==
NULL
)
set_worker_conf
(
worker_conf
);
RRM_FREE
(
worker_conf
);
RRM_FREE
(
parallel_conf
);
return
0
;
return
0
;
}
}
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
c068e460
...
@@ -341,6 +341,10 @@ uint8_t do_SIB1_NR(rrc_gNB_carrier_data_t *carrier,
...
@@ -341,6 +341,10 @@ uint8_t do_SIB1_NR(rrc_gNB_carrier_data_t *carrier,
*
mnc1
=
(
mnc
/
10
)
%
10
;
*
mnc1
=
(
mnc
/
10
)
%
10
;
asn1cSequenceAdd
(
nr_plmn
->
mnc
.
list
,
NR_MCC_MNC_Digit_t
,
mnc2
);
asn1cSequenceAdd
(
nr_plmn
->
mnc
.
list
,
NR_MCC_MNC_Digit_t
,
mnc2
);
*
mnc2
=
(
mnc
)
%
10
;
*
mnc2
=
(
mnc
)
%
10
;
if
(
nr_plmn
->
mcc
!=
NULL
)
RRM_FREE
(
nr_plmn
->
mcc
);
}
//end plmn loop
}
//end plmn loop
nr_plmn_info
->
cellIdentity
.
buf
=
CALLOC
(
1
,
5
);
nr_plmn_info
->
cellIdentity
.
buf
=
CALLOC
(
1
,
5
);
...
@@ -547,7 +551,7 @@ uint8_t do_SIB1_NR(rrc_gNB_carrier_data_t *carrier,
...
@@ -547,7 +551,7 @@ uint8_t do_SIB1_NR(rrc_gNB_carrier_data_t *carrier,
asn1cSequenceAdd
(
Z8
->
list
,
asn1cSequenceAdd
(
Z8
->
list
,
long
,
long
,
ZoneEight
);
ZoneEight
);
asn1cCallocOne
(
ZoneEight
,
0
);
//
asn1cCallocOne(ZoneEight, 0);
asn1cCalloc
(
ServCellCom
->
uplinkConfigCommon
,
UL
)
asn1cCalloc
(
ServCellCom
->
uplinkConfigCommon
,
UL
)
asn_set_empty
(
&
UL
->
frequencyInfoUL
.
scs_SpecificCarrierList
.
list
);
asn_set_empty
(
&
UL
->
frequencyInfoUL
.
scs_SpecificCarrierList
.
list
);
...
@@ -674,6 +678,51 @@ The first/ leftmost bit corresponds to the first SS/PBCH block index in the grou
...
@@ -674,6 +678,51 @@ The first/ leftmost bit corresponds to the first SS/PBCH block index in the grou
return
(
-
1
);
return
(
-
1
);
}
}
if
(
sib1
->
ue_TimersAndConstants
!=
NULL
)
RRM_FREE
(
sib1
->
ue_TimersAndConstants
);
if
(
ServCellCom
->
tdd_UL_DL_ConfigurationCommon
!=
NULL
)
RRM_FREE
(
ServCellCom
->
tdd_UL_DL_ConfigurationCommon
);
if
(
ServCellCom
->
ssb_PositionsInBurst
.
groupPresence
!=
NULL
)
RRM_FREE
(
ServCellCom
->
ssb_PositionsInBurst
.
groupPresence
);
if
(
ServCellCom
->
ssb_PositionsInBurst
.
inOneGroup
.
buf
!=
NULL
)
RRM_FREE
(
ServCellCom
->
ssb_PositionsInBurst
.
inOneGroup
.
buf
);
if
(
ZoneEight
!=
NULL
)
RRM_FREE
(
ZoneEight
);
if
(
Z8
!=
NULL
)
RRM_FREE
(
Z8
);
if
(
P0
!=
NULL
)
RRM_FREE
(
P0
);
if
(
sib1
->
servingCellConfigCommon
)
RRM_FREE
(
sib1
->
servingCellConfigCommon
);
if
(
nr_plmn_info
->
trackingAreaCode
->
buf
!=
NULL
)
RRM_FREE
(
nr_plmn_info
->
trackingAreaCode
->
buf
);
if
(
nr_plmn_info
->
trackingAreaCode
!=
NULL
)
RRM_FREE
(
nr_plmn_info
->
trackingAreaCode
);
if
(
nr_plmn_info
->
cellIdentity
.
buf
!=
NULL
)
RRM_FREE
(
nr_plmn_info
->
cellIdentity
.
buf
);
if
(
sib1
->
cellSelectionInfo
!=
NULL
)
RRM_FREE
(
sib1
->
cellSelectionInfo
);
if
(
sib1_message
->
message
.
choice
.
c1
->
choice
.
systemInformationBlockType1
!=
NULL
)
RRM_FREE
(
sib1_message
->
message
.
choice
.
c1
->
choice
.
systemInformationBlockType1
);
if
(
sib1_message
->
message
.
choice
.
c1
)
RRM_FREE
(
sib1_message
->
message
.
choice
.
c1
);
if
(
sib1_message
!=
NULL
)
RRM_FREE
(
sib1_message
);
return
((
enc_rval
.
encoded
+
7
)
/
8
);
return
((
enc_rval
.
encoded
+
7
)
/
8
);
}
}
...
@@ -723,6 +772,27 @@ uint8_t do_SIB23_NR(rrc_gNB_carrier_data_t *carrier,
...
@@ -723,6 +772,27 @@ uint8_t do_SIB23_NR(rrc_gNB_carrier_data_t *carrier,
LOG_D
(
RRC
,
"[eNB] SystemInformation Encoded %zd bits (%zd bytes)
\n
"
,
enc_rval
.
encoded
,
(
enc_rval
.
encoded
+
7
)
/
8
);
LOG_D
(
RRC
,
"[eNB] SystemInformation Encoded %zd bits (%zd bytes)
\n
"
,
enc_rval
.
encoded
,
(
enc_rval
.
encoded
+
7
)
/
8
);
LOG_P
(
OAILOG_INFO
,
"BCCH_DL_SCH_Message"
,
(
uint8_t
*
)
carrier
->
SIB23
,
100
);
LOG_P
(
OAILOG_INFO
,
"BCCH_DL_SCH_Message"
,
(
uint8_t
*
)
carrier
->
SIB23
,
100
);
if
(
sib3
->
choice
.
sib3
!=
NULL
)
RRM_FREE
(
sib3
->
choice
.
sib3
);
if
(
sib3
!=
NULL
)
RRM_FREE
(
sib3
);
if
(
sib2
->
choice
.
sib2
!=
NULL
)
RRM_FREE
(
sib2
->
choice
.
sib2
);
if
(
sib2
!=
NULL
)
RRM_FREE
(
sib2
);
if
(
sib
->
criticalExtensions
.
choice
.
systemInformation
!=
NULL
)
RRM_FREE
(
sib
->
criticalExtensions
.
choice
.
systemInformation
);
if
(
sib_message
->
message
.
choice
.
c1
!=
NULL
)
RRM_FREE
(
sib_message
->
message
.
choice
.
c1
);
if
(
sib_message
!=
NULL
)
RRM_FREE
(
sib_message
);
if
(
enc_rval
.
encoded
==-
1
)
{
if
(
enc_rval
.
encoded
==-
1
)
{
return
(
-
1
);
return
(
-
1
);
}
}
...
...
openair3/SS/ss_gNB_sys_task.c
View file @
c068e460
...
@@ -223,7 +223,7 @@ static void ss_task_sys_nr_handle_req(struct NR_SYSTEM_CTRL_REQ *req, ss_nrset_t
...
@@ -223,7 +223,7 @@ static void ss_task_sys_nr_handle_req(struct NR_SYSTEM_CTRL_REQ *req, ss_nrset_t
p_cellConfig
=
&
req
->
Request
.
v
.
Cell
.
v
.
AddOrReconfigure
;
p_cellConfig
=
&
req
->
Request
.
v
.
Cell
.
v
.
AddOrReconfigure
;
SS_context
.
maxRefPower
=
p_cellConfig
->
CellConfigCommon
.
v
.
InitialCellPower
.
v
.
MaxReferencePower
;
SS_context
.
maxRefPower
=
p_cellConfig
->
CellConfigCommon
.
v
.
InitialCellPower
.
v
.
MaxReferencePower
;
cellConfig
=
(
CellConfig5GReq_t
*
)
malloc
(
sizeof
(
CellConfig5GReq_t
));
cellConfig
=
(
CellConfig5GReq_t
*
)
malloc
(
sizeof
(
CellConfig5GReq_t
));
if
(
cellConfig
=
NULL
)
if
(
cellConfig
=
=
NULL
)
{
{
AssertFatal
(
cellConfig
!=
NULL
,
"[SYS-GNB] Failed to allocate memory for proxy cell config
\n
"
);
AssertFatal
(
cellConfig
!=
NULL
,
"[SYS-GNB] Failed to allocate memory for proxy cell config
\n
"
);
}
}
...
...
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