mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-04 08:55:40 +03:00
coap_session.c: fix free callback for endpoint app data
This commit is contained in:
1 parent
3ebb745c91
commit
8401ff1ffe
1 file changed
+5
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user