OSS-FUZZ: Fix found memory leak

This commit is contained in:
Jon Shallow committed 2026-06-13 12:00:25 +01:00
1 parent b16ed7ab2a
commit d96002f710
1 file changed
+1
+1
View File
@@ -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;
}