Commit 47833b1a authored by Guido Casati's avatar Guido Casati

Free NAS PDU buffer in NAS task, which has ownership

parent 0265607a
......@@ -1330,6 +1330,8 @@ void *nas_nrue(void *args_p)
capture_pdu_session_establishment_accept_msg(pdu_buffer, pdu_length);
}
// Free NAS buffer memory after use (coming from RRC)
free(pdu_buffer);
break;
}
......@@ -1454,6 +1456,8 @@ void *nas_nrue(void *args_p)
LOG_W(NR_RRC, "unknown message type %d\n", msg_type);
break;
}
// Free NAS buffer memory after use (coming from RRC)
free(pdu_buffer);
if (initialNasMsg.length > 0)
send_nas_uplink_data_req(nas, &initialNasMsg);
......
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