From e3ea360a9e5f1a2efae3ece69cc04305315fdfd7 Mon Sep 17 00:00:00 2001 From: neonene <53406459+neonene@users.noreply.github.com> Date: Thu, 14 Jul 2022 01:08:12 +0900 Subject: [PATCH] gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790) Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`). (cherry picked from commit 4a6bb30eb600e3b18f4a84c1be922c07758c613f) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com> --- Programs/_testembed.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Programs/_testembed.c b/Programs/_testembed.c index b7d4675a955a50..34c44120a20129 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -290,6 +290,8 @@ static int test_bpo20891(void) PyThread_free_lock(lock); + Py_Finalize(); + return 0; }