Commit 3bcb27f7 authored by aligungr's avatar aligungr

NTS memory leak fix

parent 7376f37e
...@@ -207,9 +207,9 @@ void GtpTask::handleUplinkData(int ueId, int psi, OctetString &&pdu) ...@@ -207,9 +207,9 @@ void GtpTask::handleUplinkData(int ueId, int psi, OctetString &&pdu)
// TODO: currently using first QSI // TODO: currently using first QSI
ul->qfi = static_cast<int>(pduSession->qosFlows->list.array[0]->qosFlowIdentifier); ul->qfi = static_cast<int>(pduSession->qosFlows->list.array[0]->qosFlowIdentifier);
auto cont = new gtp::PduSessionContainerExtHeader(); auto cont = std::make_unique<gtp::PduSessionContainerExtHeader>();
cont->pduSessionInformation = std::move(ul); cont->pduSessionInformation = std::move(ul);
gtp.extHeaders.push_back(std::unique_ptr<gtp::GtpExtHeader>(cont)); gtp.extHeaders.push_back(std::move(cont));
OctetString gtpPdu; OctetString gtpPdu;
if (!gtp::EncodeGtpMessage(gtp, gtpPdu)) if (!gtp::EncodeGtpMessage(gtp, gtpPdu))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment