From cd778396ffed396cf8b377f86239e2c600044709 Mon Sep 17 00:00:00 2001 From: Alexander Alashkin <alexander.alashkin@cesanta.com> Date: Thu, 3 Nov 2016 18:11:32 +0100 Subject: [PATCH] Update mg_coap_add_option doc PUBLISHED_FROM=cded8f36e2833e7c256ba6cbca0ebf1f6012dee7 --- docs/c-api/coap.h/mg_coap_add_option.md | 3 ++- mongoose.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/c-api/coap.h/mg_coap_add_option.md b/docs/c-api/coap.h/mg_coap_add_option.md index 5867b7b78..83e91d5f3 100644 --- a/docs/c-api/coap.h/mg_coap_add_option.md +++ b/docs/c-api/coap.h/mg_coap_add_option.md @@ -9,5 +9,6 @@ signature: | --- Adds a new option to mg_coap_message structure. -Returns pointer to the newly created option. +Returns pointer to the newly created option. +Note: options must be freed by using mg_coap_free_options diff --git a/mongoose.h b/mongoose.h index f4b2ca51b..265b075b1 100644 --- a/mongoose.h +++ b/mongoose.h @@ -5328,6 +5328,7 @@ int mg_set_protocol_coap(struct mg_connection *nc); /* * Adds a new option to mg_coap_message structure. * Returns pointer to the newly created option. + * Note: options must be freed by using mg_coap_free_options */ struct mg_coap_option *mg_coap_add_option(struct mg_coap_message *cm, uint32_t number, char *value, -- GitLab