[all-commits] [llvm/llvm-project] 30dc03: [flang] Avoid double cleanup when the result is cl...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Mon Mar 6 08:46:57 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 30dc03796894339ceb64f86cbc95f75ea7b78791
https://github.com/llvm/llvm-project/commit/30dc03796894339ceb64f86cbc95f75ea7b78791
Author: Valentin Clement <clementval at gmail.com>
Date: 2023-03-06 (Mon, 06 Mar 2023)
Changed paths:
M flang/lib/Lower/ConvertCall.cpp
M flang/test/Lower/derived-type-finalization.f90
Log Message:
-----------
[flang] Avoid double cleanup when the result is cleaned up by the Destroy function
The Destroy runtime function does free the memory so do not do it
inlined when we use Destroy. This avoid a double free execution error.
Reviewed By: PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D145372
More information about the All-commits
mailing list