title: how to free memory after ASSERT_TRUE in gtest
body: <p>I have use case scenario.</p>
  
  <pre><code>List* pList = new List();    
  for (...)
  {
  
   Integer* pInt = new Integer();
   ASSERT_TRUE(pInt != NULL);
   pList-&gt;Add(*pInt);
  
  }
  </code></pre>
  
  <p>Now, should <code>pInt</code> be null in any of iteration, then this test case will stop and <code>pList</code> will not be freed.</p>
  
  <p>Is there any way to free up <code>pList</code> when <code>ASSERT_TRUE</code> executes?</p>
  
  <p>Thanks  </p>