mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-06 20:25:51 +03:00
Remove endpoint from context list when free
This commit is contained in:
1 parent
80b2bef1b1
commit
b511257724
1 file changed
+3
@@ -946,6 +946,9 @@ coap_free_endpoint(coap_endpoint_t *ep) {
|
||||
}
|
||||
}
|
||||
|
||||
if (ep->context) {
|
||||
LL_DELETE(ep->context->endpoint, ep);
|
||||
}
|
||||
coap_mfree_endpoint(ep);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user