<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Memory leak in the NMSDK c library in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Memory-leak-in-the-NMSDK-c-library/m-p/169858#M3165</link>
    <description>&lt;P&gt;Please reach out to dl-sdk-answers@netapp.com&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 19:54:17 GMT</pubDate>
    <dc:creator>wdiane</dc:creator>
    <dc:date>2021-09-09T19:54:17Z</dc:date>
    <item>
      <title>Memory leak in the NMSDK c library</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Memory-leak-in-the-NMSDK-c-library/m-p/169243#M3160</link>
      <description>&lt;P&gt;Hi, I recently use the ASAN feature with gcc on our custom binary using NMSDK 9.7, and it detected such memory leak:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indirect leak of 128 byte(s) in 2 object(s) allocated from:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #0 0x7f963768fb50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #1 0x7f962e858da5 &amp;nbsp;(/lib/x86_64-linux-gnu/libc.so.6+0x103da5)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #2 0x7f962e85a0a6 in getaddrinfo (/lib/x86_64-linux-gnu/libc.so.6+0x1050a6)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #3 0x7f963764825a &amp;nbsp;(/usr/lib/x86_64-linux-gnu/libasan.so.4+0x9725a)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #4 0x7f962f42c5c5 in na_server_invoke_elem_http /libnetapp/na.c:3575&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #5 0x7f962f42b6c9 in na_server_invoke_elem /libnetapp/na.c:3014&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; #6 0x5593aea874e8 in NetAppApiClient::InvokeAPI(int, ScopedNaElem*, ScopedNaElem*) (/tmp/netapp_api_client_main+0x49e4e8)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is consistently being reported when the API above is called. Looks like the memory allocated in getaddrinfo() is not freed (check&amp;nbsp;&lt;A href="https://man7.org/linux/man-pages/man3/getaddrinfo.3.html" target="_blank"&gt;https://man7.org/linux/man-pages/man3/getaddrinfo.3.html&lt;/A&gt;, there needs freeaddrinfo() afterwards).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a known issue? The fix seems to be straightforward if this is confirmed a legitimate memory leak.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, is the netapp SDK source code public (and people can make contribution to)?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:16:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Memory-leak-in-the-NMSDK-c-library/m-p/169243#M3160</guid>
      <dc:creator>Haihong</dc:creator>
      <dc:date>2025-06-04T10:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Memory leak in the NMSDK c library</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Memory-leak-in-the-NMSDK-c-library/m-p/169858#M3165</link>
      <description>&lt;P&gt;Please reach out to dl-sdk-answers@netapp.com&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 19:54:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Memory-leak-in-the-NMSDK-c-library/m-p/169858#M3165</guid>
      <dc:creator>wdiane</dc:creator>
      <dc:date>2021-09-09T19:54:17Z</dc:date>
    </item>
  </channel>
</rss>

