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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D145372
[flang] Avoid double cleanup when the result is cleaned up by the Destroy function ClosedPublic Authored by clementval on Mar 6 2023, 6:14 AM.
Details Summary The Destroy runtime function does free the memory so do not do it
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 6 2023, 6:14 AM clementval retitled this revision from [flang] Avoid double cleanup when the result is cleanedup by the Destroy function to [flang] Avoid double cleanup when the result is cleaned up by the Destroy function.Mar 6 2023, 7:58 AM This revision is now accepted and ready to land.Mar 6 2023, 8:38 AM Closed by commit rG30dc03796894: [flang] Avoid double cleanup when the result is cleaned up by the Destroy… (authored by clementval). · Explain WhyMar 6 2023, 8:46 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 502673 flang/lib/Lower/ConvertCall.cpp
flang/test/Lower/derived-type-finalization.f90
|