]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 13 Jul 2022 16:39:56 +0000 (09:39 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2022 16:39:56 +0000 (09:39 -0700)
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

index b7d4675a955a5064a588d689274baae57f2bd047..34c44120a2012911bb7847b1b27cb1388a31d61f 100644 (file)
@@ -290,6 +290,8 @@ static int test_bpo20891(void)
 
     PyThread_free_lock(lock);
 
+    Py_Finalize();
+
     return 0;
 }