<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf_cloud_coap_connect() possible memory leak</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118973/nrf_cloud_coap_connect-possible-memory-leak</link><description>Hello I am using a custom board, based on nRF9160. I&amp;#39;m using SDK 2.7.0 and modem firmware 1.3.6. After a bug in production where a device stopped sending data, I tracked down the issue to this function nrf_cloud_coap_connect(). In my specific case, after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Feb 2025 07:41:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118973/nrf_cloud_coap_connect-possible-memory-leak" /><item><title>RE: nrf_cloud_coap_connect() possible memory leak</title><link>https://devzone.nordicsemi.com/thread/524241?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 07:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f848c9c-d65c-4d18-bc53-fa494602041d</guid><dc:creator>Vincent44</dc:creator><description>&lt;p&gt;I made a similar test with modem 1.3.6 and SDK 2.8.0, and it seems to work fine.&lt;/p&gt;
&lt;p&gt;Looks like there was something wrong with SDK 2.7.0.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_cloud_coap_connect() possible memory leak</title><link>https://devzone.nordicsemi.com/thread/524147?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 16:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0758da9-a966-450b-a651-360ae220fcdb</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Vicent,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I did a test with NCS 2.9.0 &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/cellular/modem_shell/README.html"&gt;Cellular: Modem Shell&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and MFW 1.3.7 on nRF9160DK.&lt;br /&gt;It repeats nRF connect and disconnect 100 times and there is no error happens.&lt;/p&gt;
&lt;p&gt;You can find the testing script and test log. The&amp;nbsp;&lt;span&gt;nrf_cloud_coap_connect function should have no memory leak problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfcloud_5F00_coap_5F00_connection_5F00_tester.py"&gt;devzone.nordicsemi.com/.../nrfcloud_5F00_coap_5F00_connection_5F00_tester.py&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2703.test.log"&gt;devzone.nordicsemi.com/.../2703.test.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_cloud_coap_connect() possible memory leak</title><link>https://devzone.nordicsemi.com/thread/523320?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 14:44:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eedc363d-7870-41e6-a8a1-4bd4c5a9c9a5</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;Thanks for reporting this issue. I checked the rlease notes of NCS and MFW, but there is no related bug fixes mentioned.&lt;/p&gt;
&lt;p&gt;I see&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/samples/cellular/modem_shell/README.html"&gt;Cellular: Modem Shell&lt;/a&gt;&amp;nbsp;codes provides a similar way for nrf cloud connect and disconnect. I would arrange some time to try on latest NCS 2.9.0 and MFW&amp;nbsp;1.3.7 frist tomorrow. You can also did a test with it&amp;nbsp;to see if it is repeatable with this offical sample.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>