Remove endpoint from context list when free

This commit is contained in:
LewixLiu committed 2019-06-04 23:14:34 +08:00
1 parent 80b2bef1b1
commit b511257724
1 file changed
+3
+3
View File
@@ -946,6 +946,9 @@ coap_free_endpoint(coap_endpoint_t *ep) {
}
}
if (ep->context) {
LL_DELETE(ep->context->endpoint, ep);
}
coap_mfree_endpoint(ep);
}
}