mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-10 10:50:40 +03:00
coap-server.c: free allocated uri memory in hnd_delete
This fixes CID 1483548.
This commit is contained in:
1 parent
784c2ddc5f
commit
f0e8ebe0d0
1 file changed
+1
-2
@@ -418,8 +418,8 @@ hnd_delete(coap_context_t *ctx,
|
||||
|
||||
/* Dynamic resource no longer required - delete it */
|
||||
coap_delete_resource(ctx, resource);
|
||||
coap_delete_string(uri_path);
|
||||
response->code = COAP_RESPONSE_CODE(202);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -472,7 +472,6 @@ hnd_get(coap_context_t *ctx UNUSED_PARAM,
|
||||
resource_entry->media_type, -1,
|
||||
value.length,
|
||||
value.s);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user