coap-server.c: free allocated uri memory in hnd_delete

This fixes CID 1483548.
This commit is contained in:
Olaf Bergmann committed 2020-06-19 16:51:55 +02:00
1 parent 784c2ddc5f
commit f0e8ebe0d0
1 file changed
+1 -2
+1 -2
View File
@@ -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;
}
/*