mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-29 18:07:08 +03:00
coap_oscore.c: Fix coap_parse_oscore_conf_mem() memory leak
This commit is contained in:
1 parent
f538e7ee12
commit
f6e40a713c
1 file changed
+1
-1
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user