mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-22 23:35:13 +03:00
coap-server.c: Fix memory leak in hnd_put()
Added missing coap_delete_string() for uri_path in case of an error return. This fixes CID 1483553.
This commit is contained in:
1 parent
da38169b42
commit
ec3dfda228
1 file changed
+1
@@ -550,6 +550,7 @@ hnd_put(coap_context_t *ctx UNUSED_PARAM,
|
||||
} else {
|
||||
dynamic_count--;
|
||||
response->code = COAP_RESPONSE_CODE(500);
|
||||
coap_delete_string(uri_path);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user