]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-138756: Fix leak of inittab memory in PyInitConfig_Free() (GH-138792) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 17:11:20 +0000 (19:11 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 17:11:20 +0000 (17:11 +0000)
gh-138756: Fix leak of inittab memory in PyInitConfig_Free() (GH-138792)
(cherry picked from commit 3d521a62e7c377ac518c9f0326a88be204f0e3aa)

Co-authored-by: Victor Stinner <vstinner@python.org>
Python/initconfig.c

index a7e0fcb42f6b337c8f5c77728c61248fd54dbd76..bdd223213f5dd6eade433c959295cc013c99ae20 100644 (file)
@@ -3729,6 +3729,7 @@ PyInitConfig_Free(PyInitConfig *config)
     }
 
     initconfig_free_config(&config->config);
+    PyMem_RawFree(config->inittab);
     free(config->err_msg);
     free(config);
 }