Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
Libraries
UERANSIM
Commits
132d7a38
Commit
132d7a38
authored
Dec 24, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NAS/RRC memory leak fix
parent
7bc0d097
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
src/lib/nas/base.hpp
src/lib/nas/base.hpp
+1
-0
src/lib/nas/msg.hpp
src/lib/nas/msg.hpp
+3
-0
src/ue/rrc/connection.cpp
src/ue/rrc/connection.cpp
+1
-0
src/ue/rrc/nas.cpp
src/ue/rrc/nas.cpp
+1
-0
No files found.
src/lib/nas/base.hpp
View file @
132d7a38
...
@@ -16,6 +16,7 @@ namespace nas
...
@@ -16,6 +16,7 @@ namespace nas
struct
InformationElement
struct
InformationElement
{
{
virtual
~
InformationElement
()
=
default
;
};
};
struct
InformationElement1
:
InformationElement
struct
InformationElement1
:
InformationElement
...
...
src/lib/nas/msg.hpp
View file @
132d7a38
...
@@ -83,6 +83,9 @@ struct NasMessage
...
@@ -83,6 +83,9 @@ struct NasMessage
protected:
protected:
NasMessage
()
=
default
;
NasMessage
()
=
default
;
public:
virtual
~
NasMessage
()
=
default
;
};
};
struct
SmMessage
:
NasMessage
struct
SmMessage
:
NasMessage
...
...
src/ue/rrc/connection.cpp
View file @
132d7a38
...
@@ -126,6 +126,7 @@ void UeRrcTask::receiveRrcSetup(int cellId, const ASN_RRC_RRCSetup &msg)
...
@@ -126,6 +126,7 @@ void UeRrcTask::receiveRrcSetup(int cellId, const ASN_RRC_RRCSetup &msg)
m_initialNasPdu
=
{};
m_initialNasPdu
=
{};
sendRrcMessage
(
pdu
);
sendRrcMessage
(
pdu
);
asn
::
Free
(
asn_DEF_ASN_RRC_UL_DCCH_Message
,
pdu
);
m_logger
->
info
(
"RRC connection established"
);
m_logger
->
info
(
"RRC connection established"
);
switchState
(
ERrcState
::
RRC_CONNECTED
);
switchState
(
ERrcState
::
RRC_CONNECTED
);
...
...
src/ue/rrc/nas.cpp
View file @
132d7a38
...
@@ -57,6 +57,7 @@ void UeRrcTask::deliverUplinkNas(uint32_t pduId, OctetString &&nasPdu)
...
@@ -57,6 +57,7 @@ void UeRrcTask::deliverUplinkNas(uint32_t pduId, OctetString &&nasPdu)
asn
::
SetOctetString
(
*
c1
.
choice
.
ulInformationTransfer
->
dedicatedNAS_Message
,
nasPdu
);
asn
::
SetOctetString
(
*
c1
.
choice
.
ulInformationTransfer
->
dedicatedNAS_Message
,
nasPdu
);
sendRrcMessage
(
pdu
);
sendRrcMessage
(
pdu
);
asn
::
Free
(
asn_DEF_ASN_RRC_UL_DCCH_Message
,
pdu
);
}
}
void
UeRrcTask
::
receiveDownlinkInformationTransfer
(
const
ASN_RRC_DLInformationTransfer
&
msg
)
void
UeRrcTask
::
receiveDownlinkInformationTransfer
(
const
ASN_RRC_DLInformationTransfer
&
msg
)
...
...
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