Commit fba31da2 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Address CPP check issues

parent 352409cd
......@@ -1797,6 +1797,9 @@ void smf_context::handle_pdu_session_update_sm_context_request(
smreq->pid, N11_SESSION_UPDATE_SM_CONTEXT_RESPONSE);
free_wrapper((void**) &qos_flow_description);
free_wrapper ((void**) &decoded_nas_msg.plain.sm
.pdu_session_modification_request.qosflowdescriptions
.qosflowdescriptionscontents);
return;
}
......@@ -1840,6 +1843,9 @@ void smf_context::handle_pdu_session_update_sm_context_request(
//don't need to create a procedure to update UPF
free_wrapper((void**) &qos_flow_description);
free_wrapper ((void**) &decoded_nas_msg.plain.sm
.pdu_session_modification_request.qosflowdescriptions
.qosflowdescriptionscontents);
}
break;
......
......@@ -732,6 +732,7 @@ bool smf_n1_n2::create_n2_sm_information(pdu_session_msg &msg,
or (qos_flow.qfi.qfi > QOS_FLOW_IDENTIFIER_LAST )) {
//error
Logger::smf_app().error("Incorrect QFI %d", qos_flow.qfi.qfi);
free_wrapper((void**) &ngap_IEs);
return false;
}
......
......@@ -63,6 +63,7 @@ public:
udp_server(const struct in_addr& address, const uint16_t port_num)
: app_(nullptr), port_(port_num)
{
recv_buffer_[0] = 0;
socket_ = create_socket (address, port_);
if (socket_ > 0) {
Logger::udp().debug( "udp_server::udp_server(%s:%d)", conv::toString(address).c_str(), port_);
......@@ -92,6 +93,7 @@ public:
udp_server(const char * address, const uint16_t port_num)
: app_(nullptr), port_(port_num)
{
recv_buffer_[0] = 0;
socket_ = create_socket (address, port_);
if (socket_ > 0) {
Logger::udp().debug( "udp_server::udp_server(%s:%d)", address, port_);
......
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