[flang][runtime] Fixed memory leak in Assign().
authorSlava Zakharin <szakharin@nvidia.com>
Mon, 15 May 2023 16:52:14 +0000 (09:52 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Mon, 15 May 2023 17:48:46 +0000 (10:48 -0700)
commitbf536456343ed13249ca251ab564861c920a7615
treef64ab99c18eaa3075487b49188d666dd96d33d80
parent7c7ffa7bab7e5a67cc3157c66fa5570719043ab3
[flang][runtime] Fixed memory leak in Assign().

The temporary descriptor must be either Pointer or Allocatable,
otherwise its memory will not be freed.

Reviewed By: klausler

Differential Revision: https://reviews.llvm.org/D150534
flang/runtime/assign.cpp