fix: memory leak if client receives ACK response via OSCORE

This commit is contained in:
Lucien Zuercher authored and Jon Shallow committed 2026-03-16 16:06:24 +00:00
1 parent 4f38c3dfac
commit f1b778352f
1 file changed
+4
+4
View File
@@ -3987,6 +3987,10 @@ coap_dispatch(coap_context_t *context, coap_session_t *session,
switch (pdu->type) {
case COAP_MESSAGE_ACK:
if (sent != NULL) {
coap_delete_node_lkd(sent);
}
/* find message id in sendqueue to stop retransmission */
coap_remove_from_queue(&context->sendqueue, session, pdu->mid, &sent);