mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-22 23:35:13 +03:00
OSS-FUZZ: Fix found memory leak
This commit is contained in:
1 parent
b16ed7ab2a
commit
d96002f710
1 file changed
+1
@@ -209,6 +209,7 @@ coap_new_cache_entry_lkd(coap_session_t *session, const coap_pdu_t *pdu,
|
||||
}
|
||||
entry->cache_key = coap_cache_derive_key(session, pdu, session_based);
|
||||
if (!entry->cache_key) {
|
||||
coap_delete_pdu_lkd(entry->pdu);
|
||||
coap_free_type(COAP_CACHE_ENTRY, entry);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user