title: Is a dynamic array automatically deallocated when it goes out of scope?
body: <p>in this example</p>
  
  <pre><code>procedure foobar;
  var tab:array of integer;
  begin
    setlength(tab,10);
  end;
  </code></pre>
  
  <p>is the array destroyed or the memory is leaking?</p>