coap_session.c: fix free callback for endpoint app data

This commit is contained in:
Mario Kicherer authored and Jon Shallow committed 2025-05-22 12:26:44 +01:00
1 parent 3ebb745c91
commit 8401ff1ffe
1 file changed
+5
+5
View File
@@ -2446,6 +2446,11 @@ coap_free_endpoint_lkd(coap_endpoint_t *ep) {
LL_DELETE(ep->context->endpoint, ep);
}
}
if (ep->app_cb) {
ep->app_cb(ep->app_data);
}
coap_mfree_endpoint(ep);
}
}