coap_oscore.c: Fix coap_parse_oscore_conf_mem() memory leak

This commit is contained in:
Jon Shallow committed 2026-03-16 16:00:55 +00:00
1 parent f538e7ee12
commit f6e40a713c
1 file changed
+1 -1
+1 -1
View File
@@ -1945,7 +1945,7 @@ coap_parse_oscore_conf_mem(coap_str_const_t conf_mem) {
coap_log_warn("oscore_conf: Keyword '%.*s' duplicated\n",
(int)keyword.length,
(const char *)keyword.s);
goto error;
goto error_free_value_bin;
}
memcpy(&(((char *)oscore_conf)[oscore_config[i].offset]),
&value.u.value_bin,