Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この例では
procedure foobar; var tab:array of integer; begin setlength(tab,10); end;
配列が破壊されているか、メモリがリークしていますか?
メモリが解放されます。(つまり、メモリリークはありません!)
配列は自動的に解放されますが、何らかの理由で解放されない、あいまいなケースを見てきました。配列をnilに設定して解決しました。