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
0827b2f5
Commit
0827b2f5
authored
Feb 15, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaks & unitialized memory in nr_ulschsim
parent
399e6d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
openair1/SIMULATION/NR_PHY/ulschsim.c
openair1/SIMULATION/NR_PHY/ulschsim.c
+13
-1
No files found.
openair1/SIMULATION/NR_PHY/ulschsim.c
View file @
0827b2f5
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include <sys/ioctl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mman.h>
#include "common/config/config_userapi.h"
#include "common/config/config_userapi.h"
#include "common/utils/load_module_shlib.h"
#include "common/utils/LOG/log.h"
#include "common/utils/LOG/log.h"
#include "common/ran_context.h"
#include "common/ran_context.h"
#include "PHY/types.h"
#include "PHY/types.h"
...
@@ -372,7 +373,7 @@ int main(int argc, char **argv)
...
@@ -372,7 +373,7 @@ int main(int argc, char **argv)
RC
.
gNB
=
(
PHY_VARS_gNB
**
)
malloc
(
sizeof
(
PHY_VARS_gNB
*
));
RC
.
gNB
=
(
PHY_VARS_gNB
**
)
malloc
(
sizeof
(
PHY_VARS_gNB
*
));
RC
.
gNB
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_gNB
));
RC
.
gNB
[
0
]
=
calloc
(
1
,
sizeof
(
PHY_VARS_gNB
));
gNB
=
RC
.
gNB
[
0
];
gNB
=
RC
.
gNB
[
0
];
//gNB_config = &gNB->gNB_config;
//gNB_config = &gNB->gNB_config;
...
@@ -616,6 +617,14 @@ int main(int argc, char **argv)
...
@@ -616,6 +617,14 @@ int main(int argc, char **argv)
for
(
sf
=
0
;
sf
<
2
;
sf
++
)
for
(
sf
=
0
;
sf
<
2
;
sf
++
)
for
(
i
=
0
;
i
<
2
;
i
++
)
for
(
i
=
0
;
i
<
2
;
i
++
)
free_nr_ue_ulsch
(
&
UE
->
ulsch
[
sf
][
0
][
i
],
N_RB_UL
);
free_nr_ue_ulsch
(
&
UE
->
ulsch
[
sf
][
0
][
i
],
N_RB_UL
);
term_nr_ue_signal
(
UE
,
1
);
free
(
UE
);
phy_free_nr_gNB
(
gNB
);
free
(
gNB
->
threadPool
);
free
(
gNB
->
respDecode
);
free
(
RC
.
gNB
[
0
]);
free
(
RC
.
gNB
);
free_channel_desc_scm
(
gNB2UE
);
free_channel_desc_scm
(
gNB2UE
);
...
@@ -625,6 +634,9 @@ int main(int argc, char **argv)
...
@@ -625,6 +634,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