]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)
authorneonene <53406459+neonene@users.noreply.github.com>
Wed, 13 Jul 2022 16:08:12 +0000 (01:08 +0900)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2022 16:08:12 +0000 (09:08 -0700)
Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`).

Programs/_testembed.c

index 542e46968ce564c1140e5bf2c19fdcf8e5c26763..6b43d5340301463d9f69823e0659adfd8607a5b9 100644 (file)
@@ -368,6 +368,8 @@ static int test_bpo20891(void)
 
     PyThread_free_lock(lock);
 
+    Py_Finalize();
+
     return 0;
 }