summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-13 16:40:46 (GMT)
committerGitHub <noreply@github.com>2022-07-13 16:40:46 (GMT)
commit11cdde85c3153f4cef382500d74b4155a0e784a0 (patch)
tree1019241fe076f4f73da2b2291532b3a388941aee
parentf44a9dc430d0e4f44d2d2914aa3241205ab5c185 (diff)
downloadcpython-11cdde85c3153f4cef382500d74b4155a0e784a0.zip
cpython-11cdde85c3153f4cef382500d74b4155a0e784a0.tar.gz
cpython-11cdde85c3153f4cef382500d74b4155a0e784a0.tar.bz2
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>
-rw-r--r--Programs/_testembed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 542e469..6b43d53 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -368,6 +368,8 @@ static int test_bpo20891(void)
PyThread_free_lock(lock);
+ Py_Finalize();
+
return 0;
}