title: Are memory leaks possible with decltype(new any_type())?
body: <p>I am checking for any memory leaks possibility with class pointers using <code>valgrind</code> and found out that following program has no memory leaks :</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;utility&gt;
  #include &lt;memory&gt;
  
  using namespace std;
  
  class base{};
  
  int main()
  {
    unique_ptr&lt;base&gt; b1 = make_unique&lt;base&gt;();
    base *b2 = new base();
    cout &lt;&lt; is_same&lt;decltype(new base()), decltype(b1)&gt;::value &lt;&lt; endl;
    cout &lt;&lt; is_same&lt;decltype(new base()), decltype(b2)&gt;::value &lt;&lt; endl;
    delete b2;
    return 0;
  }
  </code></pre>
  
  <p>How can this be possible?</p>