how to delete memory occupied by new operator in C++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8839943/why-does-the-use-of-new-cause-memory-leaks">Why does the use of ‘new’ cause memory leaks?</a>  </p>
</blockquote>



<p>I am new in C++ memory profiling. 
Valgrind reported a leak in this line</p>

<pre><code>m_propertyManager(new coral::PropertyManager);
</code></pre>

<p>So i modified it as</p>

<pre><code>coral::PropertyManager Mgr;
m_propertyManager(&amp;Mgr);
</code></pre>

<p>I guess <code>&amp;Mgr</code> is deleted automatically but again valgrind is reporting leak in this.</p>
