title: Memory leak with Eigen sparse matrices multiplication
body: <p>I have these three sparse matrices, defined in the following way:</p>
  
  <pre><code>typedef SparseMatrix&lt;double&gt; SpMat;
  
  int m_totSize = 256*256;
  
  SpMat *L = new SpMat(m_totSize, m_totSize);
  SpMat *A = new SpMat(m_totSize, m_totSize);     
  SpMat *W = new SpMat(m_totSize, m_totSize);
  </code></pre>
  
  <p>I am setting L with "setFromTriplets" and set W as the identity matrix.</p>
  
  <p>Now I want to do:</p>
  
  <pre><code>*A = (*W)*(*L);
  </code></pre>
  
  <p>(Although I know it's going to give me L back).</p>
  
  <p>And then:</p>
  
  <pre><code>delete L;
  delete A;
  delete W;
  </code></pre>
  
  <p>Even though I'm deleting the matrices at the end (I've also tried resize(0,0)), I'm experiencing severe memory leaks because of this multiplication.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>