<?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 [solved]pointer store in global vector cause memory leak? in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/solved-pointer-store-in-global-vector-cause-memory-leak/m-p/1108039#M16079</link>
    <description>&lt;P&gt;seems to be our own problem.Sorry for interrupt&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2016 04:54:58 GMT</pubDate>
    <dc:creator>mai__alek</dc:creator>
    <dc:date>2016-01-29T04:54:58Z</dc:date>
    <item>
      <title>[solved]pointer store in global vector cause memory leak?</title>
      <link>https://community.intel.com/t5/Analyzers/solved-pointer-store-in-global-vector-cause-memory-leak/m-p/1108039#M16079</link>
      <description>&lt;P&gt;seems to be our own problem.Sorry for interrupt&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 04:54:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/solved-pointer-store-in-global-vector-cause-memory-leak/m-p/1108039#M16079</guid>
      <dc:creator>mai__alek</dc:creator>
      <dc:date>2016-01-29T04:54:58Z</dc:date>
    </item>
    <item>
      <title>Please try Inspector XE 2016</title>
      <link>https://community.intel.com/t5/Analyzers/solved-pointer-store-in-global-vector-cause-memory-leak/m-p/1108040#M16080</link>
      <description>&lt;P&gt;Please try Inspector XE 2016 Update 1 - which reported memory not deallocated (not memory leak).&lt;/P&gt;

&lt;P&gt;$ g++ -g a.cpp&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SUB&gt;#include &amp;lt;vector&amp;gt;&lt;/SUB&gt;&lt;/P&gt;

	&lt;P&gt;&lt;SUB&gt;using namespace std;&lt;/SUB&gt;&lt;/P&gt;

	&lt;P&gt;&lt;SUB&gt;vector&amp;lt;int&amp;gt; *g_vec;&lt;/SUB&gt;&lt;/P&gt;

	&lt;P&gt;&lt;SUB&gt;int main()&lt;BR /&gt;
		{&lt;BR /&gt;
		g_vec = new vector&amp;lt;int&amp;gt;;&lt;BR /&gt;
		g_vec-&amp;gt;push_back(1);&lt;BR /&gt;
		return 1;&lt;BR /&gt;
		}&lt;/SUB&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;# inspxe-cl -c mi3 -- ./a.out&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	1 new problem(s) found&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 Memory not deallocated problem(s) detected&lt;/P&gt;

&lt;P&gt;$ inspxe-cl -R problems -verbose&lt;BR /&gt;
	P1: Warning: &lt;STRONG&gt;Memory not deallocated&lt;/STRONG&gt;: Not fixed&lt;BR /&gt;
	&amp;nbsp;P1.3: Warning: Memory not deallocated: 24 Bytes: Not fixed&lt;BR /&gt;
	&amp;nbsp; /home/peter/a.cpp(9): Warning X3: Allocation site: Function main: Module /home/peter/a.out&lt;BR /&gt;
	&amp;nbsp; Code snippet:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&amp;nbsp; int main()&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;gt;9&amp;nbsp; g_vec = new vector&amp;lt;int&amp;gt;;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; 10&amp;nbsp; g_vec-&amp;gt;push_back(1);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; 11&amp;nbsp; return 1;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Stack (1 of 1 instance(s))&lt;BR /&gt;
	&amp;nbsp; &amp;gt;a.out!main - /home/peter/a.cpp:9&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; libc.so.6!__libc_start_main - /lib64/libc.so.6:0x1ed59&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; a.out!_start - /home/peter/a.out:0x7b4&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 07:01:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/solved-pointer-store-in-global-vector-cause-memory-leak/m-p/1108040#M16080</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2016-01-29T07:01:28Z</dc:date>
    </item>
  </channel>
</rss>

