From fbb74be34df6cc5629817277e40b162dda59d44f Mon Sep 17 00:00:00 2001 From: "John F. Carr" Date: Thu, 28 May 2026 16:32:10 -0400 Subject: [PATCH] Call closure_exception destructor --- runtime/personality.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/personality.cpp b/runtime/personality.cpp index f6b28970..c6968769 100644 --- a/runtime/personality.cpp +++ b/runtime/personality.cpp @@ -121,6 +121,7 @@ closure_exception *get_exception_reducer_or_null(__cilkrts_worker *w) noexcept { void clear_exception_reducer(__cilkrts_worker *w, closure_exception *exn_r) noexcept { CILK_ASSERT_NULL(exn_r->throwing_fiber); + exn_r->~closure_exception(); free(exn_r); internal_reducer_remove(w, &exception_reducer); }