From 41262f9bd60db22bb1d2da09378bb1fe30f5d7d9 Mon Sep 17 00:00:00 2001 From: Teemu Takaluoma Date: Thu, 17 Jun 2021 16:46:19 +0300 Subject: [PATCH] mbed-cloud-client 4.9.1 --- CHANGELOG.md | 8 ++++++++ .../OS_Specific/ZephyrOS/Networking/pal_plat_network.c | 3 +++ mbed-client/source/m2mnsdlinterface.cpp | 4 +--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b477e87a..3996aa7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ ## Changelog for Pelion Device Management Client +### Release 4.9.1 (17.06.2021) + +### Device Management Client +- Fixed the incorrect overriding of CoAP retransmission buffer size. + +### Platform Adaptation Layer (PAL) +- [Zephyr] Fixed a memory leak on DNs handling. + ### Release 4.9.0 (20.05.2021) ### Device Management Client diff --git a/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/ZephyrOS/Networking/pal_plat_network.c b/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/ZephyrOS/Networking/pal_plat_network.c index f8350b3e..6985512b 100644 --- a/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/ZephyrOS/Networking/pal_plat_network.c +++ b/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/ZephyrOS/Networking/pal_plat_network.c @@ -704,6 +704,9 @@ palStatus_t pal_plat_getAddressInfo(const char* hostname, palSocketAddress_t* ad assert(0); } + /* release allocated resources */ + freeaddrinfo(info); + } else { result = PAL_ERR_SOCKET_DNS_ERROR; diff --git a/mbed-client/source/m2mnsdlinterface.cpp b/mbed-client/source/m2mnsdlinterface.cpp index 4a3291c7..8dc9e347 100644 --- a/mbed-client/source/m2mnsdlinterface.cpp +++ b/mbed-client/source/m2mnsdlinterface.cpp @@ -88,7 +88,7 @@ #define REGISTRATION_UPDATE_DELAY 10 // wait 10ms before sending registration update for PUT to resource 1/0/1 -const char *MCC_VERSION = "mccv=4.9.0"; +const char *MCC_VERSION = "mccv=4.9.1"; int8_t M2MNsdlInterface::_tasklet_id = -1; @@ -318,8 +318,6 @@ bool M2MNsdlInterface::initialize() MBED_CLIENT_RECONNECTION_COUNT, _network_rtt_estimate); - sn_nsdl_set_retransmission_buffer(_nsdl_handle, MBED_CLIENT_SN_COAP_RESENDING_QUEUE_SIZE_MSGS, 0); - sn_nsdl_handle_block2_response_internally(_nsdl_handle, false); // Allocate the memory for endpoint