Skip to content

Commit 65dd637

Browse files
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 4a6bb30) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
1 parent 1bc13df commit 65dd637

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Programs/_testembed.c

+2
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ static int test_bpo20891(void)
290290

291291
PyThread_free_lock(lock);
292292

293+
Py_Finalize();
294+
293295
return 0;
294296
}
295297

0 commit comments

Comments
 (0)