mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-15 20:54:54 +03:00
coap_session.c: Free off session's last_token on session deletion
This commit is contained in:
1 parent
415fbdb7cd
commit
0d9f2531e5
1 file changed
+1
@@ -310,6 +310,7 @@ void coap_session_free(coap_session_t *session) {
|
||||
SESSIONS_DELETE(session->context->sessions, session);
|
||||
}
|
||||
#endif /* COAP_CLIENT_SUPPORT */
|
||||
coap_delete_bin_const(session->last_token);
|
||||
coap_log(LOG_DEBUG, "***%s: session %p: closed\n", coap_session_str(session),
|
||||
(void *)session);
|
||||
|
||||
|
||||
Reference in new issue
Block a user