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
fe61216a
Commit
fe61216a
authored
Feb 18, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly free memory in nr_pbchsim
Except for: - polar code
parent
3f4fa05c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+13
-0
No files found.
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
fe61216a
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include <sys/mman.h>
#include <sys/mman.h>
#include "common/config/config_userapi.h"
#include "common/config/config_userapi.h"
#include "common/utils/LOG/log.h"
#include "common/utils/LOG/log.h"
#include "common/utils/load_module_shlib.h"
#include "common/ran_context.h"
#include "common/ran_context.h"
#include "common/utils/nr/nr_common.h"
#include "common/utils/nr/nr_common.h"
#include "PHY/types.h"
#include "PHY/types.h"
...
@@ -775,6 +776,15 @@ int main(int argc, char **argv)
...
@@ -775,6 +776,15 @@ int main(int argc, char **argv)
}
// NSR
}
// NSR
free_channel_desc_scm
(
gNB2UE
);
phy_free_nr_gNB
(
gNB
);
free
(
RC
.
gNB
[
0
]);
free
(
RC
.
gNB
);
term_nr_ue_signal
(
UE
,
1
);
free
(
UE
);
for
(
i
=
0
;
i
<
2
;
i
++
)
{
for
(
i
=
0
;
i
<
2
;
i
++
)
{
free
(
s_re
[
i
]);
free
(
s_re
[
i
]);
free
(
s_im
[
i
]);
free
(
s_im
[
i
]);
...
@@ -795,6 +805,9 @@ int main(int argc, char **argv)
...
@@ -795,6 +805,9 @@ int main(int argc, char **argv)
if
(
input_fd
)
if
(
input_fd
)
fclose
(
input_fd
);
fclose
(
input_fd
);
loader_reset
();
logTerm
();
return
(
n_errors
);
return
(
n_errors
);
}
}
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