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
1
Merge Requests
1
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-RAN
Commits
3b8c1cd5
Commit
3b8c1cd5
authored
Aug 21, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in config_srs()
parent
15c2af23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
openair2/RRC/NR/nr_rrc_config.c
openair2/RRC/NR/nr_rrc_config.c
+1
-13
No files found.
openair2/RRC/NR/nr_rrc_config.c
View file @
3b8c1cd5
...
@@ -495,19 +495,7 @@ static void config_srs(const NR_ServingCellConfigCommon_t *scc,
...
@@ -495,19 +495,7 @@ static void config_srs(const NR_ServingCellConfigCommon_t *scc,
NR_SRS_Config_t
*
srs_Config
;
NR_SRS_Config_t
*
srs_Config
;
if
(
setup_release_srs_Config
->
choice
.
setup
)
{
if
(
setup_release_srs_Config
->
choice
.
setup
)
{
srs_Config
=
setup_release_srs_Config
->
choice
.
setup
;
srs_Config
=
setup_release_srs_Config
->
choice
.
setup
;
if
(
srs_Config
->
srs_ResourceSetToReleaseList
)
{
ASN_STRUCT_FREE
(
asn_DEF_NR_SRS_Config
,
srs_Config
);
free
(
srs_Config
->
srs_ResourceSetToReleaseList
);
}
if
(
srs_Config
->
srs_ResourceSetToAddModList
)
{
free
(
srs_Config
->
srs_ResourceSetToAddModList
);
}
if
(
srs_Config
->
srs_ResourceToReleaseList
)
{
free
(
srs_Config
->
srs_ResourceToReleaseList
);
}
if
(
srs_Config
->
srs_ResourceToAddModList
)
{
free
(
srs_Config
->
srs_ResourceToAddModList
);
}
free
(
srs_Config
);
}
}
setup_release_srs_Config
->
choice
.
setup
=
calloc
(
1
,
sizeof
(
*
setup_release_srs_Config
->
choice
.
setup
));
setup_release_srs_Config
->
choice
.
setup
=
calloc
(
1
,
sizeof
(
*
setup_release_srs_Config
->
choice
.
setup
));
...
...
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