[Chapel Merge] Ensure tmp folder is deleted even if context is deliberately leaked

Branch: refs/heads/main
Revision: cafac135b1158c1e84ed7cb56c75901eea295076
Author: DanilaFe
Link: Ensure tmp folder is deleted even if context is deliberately leaked by DanilaFe · Pull Request #25204 · chapel-lang/chapel · GitHub
Log Message:
Ensure tmp folder is deleted even if context is deliberately leaked (#25204)

This was previously causing some pollution due an accumulation of
temporary folders.

Fortunately, doing this does not make any difference in terms of
performance improvements that came from leaking the context.

Reviewed by @riftEmber -- thanks!

Testing

  • paratest

Compare: Comparing e266bd5c4431ab9f541307e1a8df542688bc4733...ae9d8b3c1fb31d1e474d728c07b608995678b957 · chapel-lang/chapel · GitHub

Diff:
M compiler/util/misc.cpp
https://github.com/chapel-lang/chapel/pull/25204.diff