This is an archive of the discontinued LLVM Phabricator instance.

[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
inlined when we use Destroy. This avoid a double free execution error.

Diff Detail

Event Timeline

clementval created this revision.Mar 6 2023, 6:14 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 6 2023, 6:14 AM
clementval requested review of this revision.Mar 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
PeteSteinfeld accepted this revision.Mar 6 2023, 8:38 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 6 2023, 8:38 AM